r/arduino • u/Salt_Professional180 • 3d ago
Beginner's Project Smart water tank water level monitor
I'm working on a project called "Smart Water Tank: Automatic Level Monitoring and Overflow Prevention." The goal is to measure the water level in an overhead tank, turn the pump on/off automatically, and prevent overflow.
My current plan:
• Microcontroller: [Arduino Uno / ESP32 / NodeMCU]
• Sensor: [HC-SR04 / JSN-SR04T waterproof ultrasonic / float switch]
• Pump control: relay module
• Display/alerts: [LCD / buzzer / mobile app / Blynk]
My doubts:
- Is an ultrasonic sensor reliable inside a humid tank, or should I use float switches or a pressure sensor instead?
- How do I avoid false readings from ripples and condensation? Is averaging or a median filter enough?
- What's the best way to add a fail-safe (e.g., a second float switch as a hardware backup) in case the sensor or code fails?
- How should I handle relay switching safely with an AC pump (optocoupler, flyback protection, contactor)?
- For remote monitoring, is Wi-Fi (ESP32 + MQTT/Blynk) the better option, or something simpler?
- Any tips on preventing pump short-cycling (hysteresis thresholds)?
I'm a student and this is for my College. Any advice, schematics, or lessons learned would be really appreciated.