Water Tank Indicator
Your objective
- In a Rwandan school water-tank teaching model, turn the low-level LED ON below 20% fullness; OFF at 20% and above. Fullness is normalized 0–100%, not litres.
Translations are draft and need educator review.
Drag blocks from the toolbox into the workspace. Connect statement blocks beneath Start. Use the zoom controls to see your program.
Loading workspace…
Ready
Run and test the reading below, at, and above the threshold. Let the 10-second run finish.
Stop ends the current run and keeps the current device state. Reset clears the device and output, keeping blocks.
Virtual LED
Teaching model: external active-high LED on GPIO 2 (HIGH = ON). Real board wiring differs. This simulation does not verify physical firmware.


OFF · Ready · 0 ms
Execution output
Read-only code preview
Connect one Start and all supported blocks with valid values to preview or run.Editor keyboard and screen reader access has not been verified. The surrounding instructions and controls are keyboard accessible. Practical alternatives: run the preloaded starter program, import/export workspace JSON, or inspect the read-only JavaScript, MicroPython, and C++ code preview.