Example Code for micro:bit-Air Temperature Detector
This article offers a step-by-step tutorial on building an air temperature detector using a micro:bit, with detailed hardware and software preparation, wiring diagrams, and sample code in Mind+ and MakeCode.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0011 Temperature Sensor | BOS0044 OLED Module | BOS0035 Mainboard-3IO |
![]() |
![]() |
|
| BOS0040 micro:bit BOSON expansion board | MBT0039 micro:bit |
Software Preparation
Mind+ or MakeCode
Non-programming

Programming

Other Preparation Work
Tip: micro:bit and micro:bit BOSON expansion board will be used in programming projects.
Result
| Non-programming | Programming |
|---|---|
![]() |
![]() |
Additional Information
Flowchart:

Was this article helpful?







