The temperature sensor

thermometerThe 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.

  1. Start with a blue beak light that changes to red when the temperature rises 2 degrees.
  2. Beep each time the temperature is checked
  3. Display the current temperature as the program runs
  4. 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)

Enter this code

Demonstrate your program, then change it so that the beak starts out red and turns blue when the temperature drops 2 degrees.