Example Code for micro:bit-Grain Bin Temperature Monitoring
This article demonstrates how to implement temperature monitoring in grain bins using micro:bit. It provides detailed code examples, wiring diagrams, and the necessary hardware setup, including sensors and expansion modules, for accurate and efficient monitoring.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0042 Waterproof temperature sensor | BOS0041 Air humidity sensor | BOS0020 Buzzer module |
![]() |
![]() |
![]() |
| BOS0021 Fan module | BOS0017 LED module | BOS0040 micro:bit Expansion board |
![]() |
||
| MBT0039 micro:bit |
Tips: micro:bit and micro:bit BOSON expansion boards are used in the programming example.
Wiring Diagram

Result
| Programming |
|---|
![]() |
Additional Information
Flowchart:

Was this article helpful?








