The temperature sensor
The Finch Temperature method returns the current temperature at the temperature probe
Notice where the temperature probe is located
Type in a program to use the temperature probe as a meter to determine the current temperature in the room and then detect when it rises.
- Start with a blue beak light that changes to red when the temperature rises 2 degrees.
- Beep each time the temperature is checked
- Display the current temperature as the program runs
- Beep 3 times when the temperature has risen 2 degrees and the beak is red.
First, in the orange variables section: (the variables will show up on the screen)
- Make a variable start
- Make a variable temp
Enter this code
- set start to Finch Temperature Fahrenheit
- set temp to Finch Temperature Fahrenheit
- Set the Finch's beak to blue
- repeat until temp > start + 2
- set temp to Finch Temperature Fahrenheit
- Finch buzz 440 Hz 50 mSec
- wait 0.5 sec
- set beak to red
- do 3 beeps
Demonstrate your program, then change it so that the beak starts out red and turns blue when the temperature drops 2 degrees.