MuTech RoboticsLearning Hub
Kids OK with adultESP32Level 2/3

Water Tank Level on Phone

An ultrasonic sensor on the tank lid measures the water level and your phone shows it live, with an overflow alert.

Water Tank Level on Phone
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

The 1k/2k divider on ECHO is required: it drops the sensor's 5V signal to a safe 3.3V for the ESP32.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The HC-SR04 sends a sound pulse down to the water and times the echo.
  2. The ESP32 turns the echo time into distance, then into % full.
  3. The level shows live on your phone over Wi-Fi.
  4. Near full, you get an alert before the tank overflows.

Parts you need

  • ESP32 dev board× 1Buy
  • HC-SR04 ultrasonic sensor× 1Buy
  • 1 kΩ and 2 kΩ resistors (ECHO divider)× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 SignalHC-SR04 TRIGESP32 D27
2 SignalHC-SR04 ECHO1k/2k divider → ESP32 D26
3 PowerHC-SR04 VCCESP32 VIN (5V)
4 GroundHC-SR04 GNDESP32 GND

3D print files

This project has no 3D-printed parts.

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.