Code Example for micro:bit-Simple Flood Warning System
This article guides you through building a simple flood warning system using a micro:bit, offering comprehensive instructions including hardware preparation, software setup, wiring diagrams, and sample code using Mind+ and MakeCode. It's a valuable resource for beginners interested in flood detection systems.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0006 Steam Sensor | BOS0020 Buzzer Module | BOS0017 Red/Green/Yellow LED Module |
![]() |
![]() |
|
| MBT0039 micro:bit | micro:bit BOSON Expansion Board |
Software Preparation
Mind+ and MakeCode
Wiring Diagram
Connection Diagram:
Sample Code
Mind+ Sample Program:

Additional Information
Flowchart

Was this article helpful?





