Water Level Monitoring of House Overhead Tank from Anywhere in the World

Published  February 25, 2022   0
Water Level Monitoring of House Overhead Tank

In buildings, bungalows, etc water is stored in overhead tanks. Overhead tanks ensure the continuous flow of water to our homes so that various devices like washing machines, purifiers can work. The water in these tanks needs to be regularly monitored. This has to be done by climbing to the top of the building every time and then check the water level which is a tedious process. In order to make it easier I have made this project using which we can monitor the level of water just by using our mobile phone that to from anywhere in the world. The only thing that we need is a WiFi network in the vicinity of our tank. I made this project using a Nodemcu esp8266 wifi module, ultrasonic sensor, and blynk app. The ultrasonic sensor is used for distance measurement by sending ultrasonic waves. Nodemcu processes the data and gives us the distance which is sent to the blynk app over the internet by wifi module. Also, we can use a relay module in order to control the motor to fill the tank, sitting anywhere in the world. It was not possible for me to illustrate this. But yes we can not only just monitor the water level but also fill the tank from anywhere in the world.

Also check our previous water level monitoring projects:

Component Required for Water Level Monitoring Device

Project Used Hardware

  • NodeMCU Esp8266 WiFi module,
  • Ultrasonic sensor,
  • Container (water tank)

Project Used Software

  • Blynk app,
  • Arduino IDE

Project Hardware Software Selection

Components for Water Level Monitoring Tank

NodeMCU is the main part of the project. It not only processes the raw data from the sensor but also sends the distance measured, over the internet to the blynk server or the app on our mobile. Ultrasonic Sensor is used for distance measurement using ultrasonic waves. The transmitter emits ultrasonic waves which collide with the water surface and reflect back after some time which is then received by the receiver and the distance is calculated using the relation distance=speed X time. CONTAINER to store the water. Arduino IDE is used to program the Nodemcu module. BLYNK APP is used to display the distance measured which can be viewed from anywhere.

Circuit Diagram


Overhead Tank Circuit Diagram

The Trig pin of the sensor is connected to the D1 pin of the Nodemcu. The echo pin is connected to pin D2 of Nodemcu. Vcc is connected to the power supply of 5V. Gnd is connected to the ground of supply.

#define BLYNK_PRINT Serial 

#include <Blynk.h> 



BlynkTimer timer;   

char auth[]="WnTu5G_WiGe8dlE12UzXAwFgHXqnS1YZ"; 

char ssid[]="$$$$Akboss$$$$"; 

char pass[]="akboss07";   

int trig=D1; 

int echo=D2; 

int duration; 

int distance;    

void setup() { 







void loop() { 




void sensor(){ 













Have any question realated to this Article?

Ask Our Community Members