Water tank overflow, motor dry-run, and manual monitoring have always been common problems in homes, buildings, farms, and industrial water systems. To solve these challenges, we designed an IoT Smart Water Pump Automation and Temperature Monitoring System powered by the NodeMCU ESP8266.
The IoT Smart Water Pump Automation and Temperature Monitoring System is an advanced and reliable project built using the NodeMCU ESP8266 board, Ultrasonic Sensor, Waterproof DS18B20 Temperature Sensor, Relay Module, and an I2C LCD Display. This project allows you to automatically control a water pump, monitor tank water level, measure real-time water temperature, and manage everything from the Blynk IoT App.
In this project, NodeMCU reads the water level using an Ultrasonic Sensor, monitors water temperature using a waterproof DS18B20 sensor, and controls the pump through a Relay Module. All parameters—including tank level, temperature, pump status, mode selection, warnings, and custom level limits—are displayed:
- On the I2C LCD Screen
- Inside the Blynk IoT App
- With optional real-time warnings and notifications
This is one of the most powerful and complete IoT NodeMCU ESP8266 Projects you can build.

This system offers two working modes:
- Auto Mode: Pump turns ON/OFF automatically based on tank water level.
- Manual Mode: User controls the pump directly from the Blynk mobile app.
Users can also set custom ON/OFF limits for auto mode, receive notifications, and view real-time sensor data on both Blynk App and the I2C LCD screen.
This makes it one of the best NodeMCU ESP8266 Projects for smart home automation, smart agriculture, and IoT learning.
Components used in IoT Water Pump Tank Automation and Temperature Monitoring System
- NodeMCU ESP8266 Development Board
- Ultrasonic Sensor (HC-SR04)
- Waterproof DS18B20 Temperature Sensor
- 5V Relay Module for Pump Control
- I2C 16×2 LCD Display
- Jumper wires & connectors
- Power supply (5V)
- Water tank for demonstration

Working Principle of the IoT Water Pump Tank Automation and Temperature Monitoring System
The system works by reading two types of data:
1. Water Level Measurement using Ultrasonic Sensor
The HC-SR04 ultrasonic sensor is installed on the top of the tank. It measures the distance between the sensor and water surface. Based on this distance, NodeMCU calculates:
- Tank Full %
- Low Level Warning
- Pump ON/OFF conditions
2. Water Temperature Monitoring using DS18B20
The waterproof DS18B20 sensor gives:
- Accurate water temperature
- Alerts if water temperature becomes too low or too high
- Useful for fish tanks, agriculture, boiler tanks, geysers, etc.

3. Pump Control using Relay Module
The relay switches ON/OFF the pump according to:
- Auto Mode threshold settings
- Manual Mode (Blynk button)
The pump’s real-time status is shown on:
✔ Blynk App
✔ LCD Screen
4. Display & IoT Monitoring with Blynk + LCD
The system sends everything to Blynk:
- Water Level (%)
- Water Temperature
- Tank Condition (Full / Low / Normal)
- Pump Status
- Operating Mode (Auto / Manual)
- Custom Limits (Set from App)
The same data appears on the I2C LCD as local display.

Operating Modes of Automation System
1. Auto Mode – Automatic Pump Control
In Auto Mode, the pump turns ON/OFF automatically based on water level limits set by the user.
Example:
- Pump ON Level: 20%
- Pump OFF Level: 85%
When tank level < 20% → Pump turns ON
When tank level > 85% → Pump turns OFF
- Prevents overflow
- Eliminates dry-run
- Saves electricity
- Saves water
User can modify these percentages from:
- Blynk App Input Widgets
- LCD Settings (optional)
2. Manual Mode – Full Control from Blynk App
In Manual Mode, the Auto Mode is bypassed.
User can:
- Turn pump ON
- Turn pump OFF
Directly from Blynk mobile app.
LCD also shows:
- “Manual Mode Activated”
- Pump Status
3. Blynk IoT Features
The Blynk app dashboard includes:
- Real-time water level display
- Water temperature monitoring
- Manual pump switch
- Auto/Manual mode selector
- Set ON/OFF limits
- Alerts:
- Tank Full
- Tank Empty
- Temperature abnormal
- Pump ON/OFF notifications
4. LCD Display Features
LCD continuously displays:
Line 1 → Water Level (%) + Temperature
Line 2 → Mode + Pump Status
Circuit Diagram of IoT Water Pump Tank Automation Monitoring System with NodeMCU ESP8266


NodeMCU Code for IoT Water Pump Tank Automation Project
#define BLYNK_TEMPLATE_ID "YOUR_TEMPLATE_ID"
#define BLYNK_TEMPLATE_NAME "Smart Water Tank Controller"
#define BLYNK_AUTH_TOKEN "YOUR_AUTH_TOKEN"
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <OneWire.h>
#include <DallasTemperature.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
// WIFI -----------------------------------------
char ssid[] = "YOUR_WIFI_SSID";
char pass[] = "YOUR_WIFI_PASS";
// ULTRASONIC SENSOR -----------------------------
#define TRIG D3
#define ECHO D4
long duration;
float distance;
int tankLevel = 0;
// DS18B20 SENSOR --------------------------------
#define ONE_WIRE_BUS D6
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
float temperatureC;
// RELAY -----------------------------------------
#define RELAY_PIN D0
bool pumpState = false;
// MODES -----------------------------------------
int mode = 0; // 0 = Auto, 1 = Manual
int onLevel = 20; // default ON level
int offLevel = 80; // default OFF level
BlynkTimer timer;
// ------------------------------------------------
// READ ULTRASONIC WATER LEVEL
// ------------------------------------------------
Advantages of This Project
- IoT-based Real-Time Monitoring
- Fully Automatic Water Pump Control
- Prevents Tank Overflow
- Prevents Pump Dry Run
- Temperature Monitoring for Safety
- Can be used for Underground + Overhead tanks
- Blynk allows global remote access
- Low cost and simple to build
- Highly reliable for daily use
Applications of IoT Water Pump Tank Automation and Temperature Monitoring System
- Home Water Tank Automation
- Commercial Buildings
- Smart Farm Irrigation
- Fish Farming & Aquaculture
- Industrial Water Storage Systems
- Reverse Osmosis (RO) Plants
- Geyser Temperature Monitoring
- Boiler Water Monitoring
- Hotel Water Management Systems
Conclusion
This IoT Smart Water Pump Automation & Temperature Monitoring System using NodeMCU ESP8266 is an excellent project that combines home automation, IoT, water management, and smart monitoring into a single system.
With Auto Mode, the pump works fully automatically to maintain water levels safely.
With Manual Mode, the user has complete control through the Blynk mobile app.
The addition of DS18B20 temperature sensor, I2C LCD screen, and Blynk notifications makes this project professional, reliable, and perfect for real-life use.
Whether you are a student, hobbyist, or homeowner—this is one of the best NodeMCU ESP8266 Projects you can build.
Need IoT Water Pump Tank Automation System Project?
If you need this IoT Water Pump Tank Automation System Project with or without Modifications or Customization then you can contact us through WhatsApp.
if you can not make this project yourself then you can use this option. We will assemble the Project and will ship it to your Doorstep with Safe Packaging.
Learn More about the services we offer.