Skip to content

Temperature sensor

The micro:bit has a temperature sensor inside the ARM micro-controller itself.

It’s not very precise, but can detect very accurately variations in temperature.

The block for the micro:bit Blocks editor is

temperature block

While with Micropython you can access temperature in degrees (C) with:


print microbit.temperature()

Project example

Micro:bit temperature probe