Water Quality Monitoring using Machine Learning

Water pollution is one of the biggest fears for green globalization. In the 21st Century, some developing countries like Pakistan are still facing the problem of water pollution. Every year many people are suffering from various fatal diseases caused by water pollution. Hence there is a need to deve

2025-06-28 16:30:00 - Adil Khan

Project Title

Water Quality Monitoring using Machine Learning

Project Area of Specialization Internet of ThingsProject Summary

Water pollution is one of the biggest fears for green globalization. In the 21st Century, some developing countries like Pakistan are still facing the problem of water pollution. Every year many people are suffering from various fatal diseases caused by water pollution. Hence there is a need to develop better methodologies to monitor the water quality using sensors in real-time. The water quality sensors Ph measures the concentration of hydrogen ions. It shows the water is acidic or alkaline. Pure water has a 7pH value, less than 7pH has acidic, more than 7pH has alkaline. The range of pH is 0-14 ph. For drinking purposes, it should be 6.5-8.5pH. Turbidity measures a large number of suspended particles in water that are invisible. Higher the turbidity higher the risk of diarrhea, cholera. Lower the turbidity then the water is clean. TDS measures how many milligrams of soluble solids are dissolved in water. TDS are used to calculate the EC of water, which helps to indicate the water’s purity.

Project Objectives

The aim of this project is to present a design and development of a low-cost system for real-time monitoring of water quality by using Arduino UNO.

Project Implementation Method

We implement this project by connecting hardware with the help of software requirements. We also apply ML algorithms to check water accuracy and efficiency. This will help us to check and tell the water is pure or impure. 

Benefits of the Project

Monitoring of Turbidity, PH & TDS of Water makes use of water detection sensor with a unique advantage and existing WIFI Module. The system can monitor water quality automatically, and it is low in cost and does not require people on duty. So, water quality testing is likely to be more economical, convenient, and fast. The system has good flexibility. Only by replacing the corresponding sensors and changing the relevant software programs, this system can be used to monitor other water quality parameters. The operation is simple. The system can be expanded to monitor hydrologic, air pollution, industrial and agricultural production, and so on. It has widespread application and extension value. By keeping the embedded devices in the environment for monitoring enables self-protection (i.e., smart environment) to the environment. To implement this need to deploy the sensor devices in the environment for collecting the data and analysis. By deploying sensor devices in the environment, we can bring the environment into real-life i.e., it can interact with other objects through the network. Then the collected data and analysis results will be available to the end-user through Wi-Fi.

Technical Details of Final Deliverable

Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs 

A pH sensor helps to measure the acidity or alkalinity of the water with a value between 0-14. When the pH value dips below seven, the water starts to become more acidic. Any number above seven equates to more alkaline.

A TDS sensor is a small hand-held device used to indicate the Total Dissolved Solids in a solution, usually water. Since dissolved ionized solids, such as salts and minerals, increase the conductivity of a solution.

Turbidity, They feature an LED lamp and a light detector that is positioned directly opposite the lamp. Between them, particles in the medium attenuate the emitted light, which is converted by the detector first into an electric signal and then into the final turbidity value.

Temperature sensor devices to measure temperature readings through electrical signals. The sensor is made up of two metals, which generate electrical voltage or resistance once it notices a change in temperature.

The ESP8266 WiFi Module is a self-contained SOC with an integrated TCP/IP protocol stack that can give any microcontroller access to your WiFi network. The ESP8266 is capable of either hosting an application or offloading all Wi-Fi networking functions from another application processor.

Final Deliverable of the Project Hardware SystemCore Industry HealthOther Industries IT Core Technology Internet of Things (IoT)Other Technologies OthersSustainable Development Goals Clean Water and SanitationRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 14730
Arduino UNO Equipment111001100
NodeMCU Esp8266 Equipment1500500
PH sensor Equipment145004500
TDS Sensor Equipment135003500
Temperature Sensor Equipment1500500
Turbidity Senosr Equipment215003000
Jumper Wires Equipment2200400
LCD 16*2 Equipment1500500
Resistors packet Equipment1150150
Breadboard Equipment2200400
Arduino Cable Equipment1180180

More Posts