Code the Micro:bit to Warn You If it Gets Too Warm

Use code to get the micro:bit to warn you about high temperatures.

Step 1

An 'if-statement' is used in computer programming to decide whether to run one branch of the code or another. It’s a bit like coming to a fork in the road and having to decide which path to go down.

Step 2

Use this code to make your micro:bit show an upwards arrow if the temperature is above 25 degrees.

Test your solution on the simulator.

Download your code onto the micro:bit and test it.