Code Example for micro:bit-Rain Alarm
This article offers a comprehensive guide to building a rain alarm using micro:bit, including hardware setup, software preparation, wiring diagrams, sample code, and demonstrations for both programming and non-programming projects.
Hardware Preparation
![]() |
![]() |
|---|---|
| BOS0006 Steam sensor | BOS0020 Buzzer module |
![]() |
![]() |
| MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Software Preparation
Mind+ or MakeCode
Wiring Diagram

Additional Information
Flowchart:

Was this article helpful?




