micro:bit V2 Extra Challenge
If your Finch contains a micro:bit V2, you can also use a temperature sensor in the micro:bit to measure the temperature around the Finch in degrees Celsius. The getTemperature() method returns the int value of this sensor. Room temperature is about 20°C. If you don’t have a micro:bit V2 in your Finch, you will see an error when you use this method.
Write a program to alert you when the Finch is too hot. As long as the Finch is nice and cool, its lights should blink blue. When it gets too hot, the lights should turn red.