Use code to get an indication of the temperature of the micro:bit.
Create a new blank JavaScript Blocks project.
Go to microbit.org/code and click on Let's Code
The micro:bit does not have a dedicated temperature sensor. Instead, the temperature it measures is actually the temperature of the processor microchip.
The micro:bit is low powered so it doesn’t normally get hotter when you use it. That means the temperature of the processor is roughly the same as the temperature of the room. You can use the micro:bit to tell you the temperature in degrees Celsius (°C).
The temperature isn’t totally accurate – it might be a few degrees off.
Use this code to turn the micro:bit into a temperature sensor.
To test it out, run it on the micro:bit.
Can you make the temperature change value?