Access to clean water is a pressing global challenge that demands intelligent, automated solutions. This paper presents a Smart Water Quality Monitoring and Distribution System capable of real-time measurement of five critical water-quality parameters: pH, temperature, turbidity, Total Dissolved Solids (TDS), and Electrical Conductivity (EC). An ESP32 microcontroller acquires sensor data via a pH sensor, DS18B20 temperature sensor, turbidity sensor, and TDS sensor, with EC derived mathematically from TDS readings. Measured values are displayed on a 16×2 LCD screen and simultaneously streamed to the Blynk IoT platform for remote monitoring and visualization.
Based on World Health Organization (WHO) threshold standards, the system autonomously classifies incoming water as suitable for drinking, agricultural use, or wastewater management, and actuates the corresponding solenoid valve accordingly. A mutual-exclusion mechanism ensures only one outlet valve remains active at any time, effectively preventing cross-contamination. Experimental evaluation across multiple water samples demonstrates a classification accuracy of 98%, with an end-to-end response time of 8–12 seconds, establishing the system as a cost-effective, scalable, and fully automated solution for smart water governance.
Introduction
Water is a vital natural resource essential for drinking, agriculture, and industry, but its quality is increasingly threatened by pollution, population growth, and industrial waste. Traditional water quality monitoring methods rely on manual sampling and laboratory testing, which are accurate but slow, costly, and unsuitable for real-time monitoring or large-scale systems. These limitations highlight the need for automated, continuous, and real-time water quality monitoring solutions.
To address this, the proposed system introduces a Smart Water Quality Monitoring and Automated Distribution System using IoT and embedded technology. It integrates sensors (pH, turbidity, temperature, and TDS), an ESP32 microcontroller, and cloud connectivity via the Blynk platform. The system continuously measures water quality parameters and calculates electrical conductivity from TDS values. Data is displayed locally and sent in real time to mobile devices for remote monitoring.
A key feature of the system is its automated decision-making mechanism, which classifies water based on WHO standards into three categories: drinking, agricultural, or wastewater. Depending on the classification, the system automatically controls solenoid valves to direct water to the appropriate channel, ensuring safe and efficient distribution without human intervention.
The literature review shows that while existing IoT-based systems enable real-time monitoring and alerts, most lack automated water distribution and advanced multi-category classification. The proposed system improves upon this by integrating sensing, communication, and actuation into a single closed-loop framework.
The methodology includes real-time data acquisition, processing through ESP32, cloud-based monitoring, and rule-based classification using WHO thresholds. Key parameters considered are pH, turbidity, temperature, and TDS, which together determine water quality.
Conclusion
This paper presented the design and implementation of a Smart Water Quality Monitoring and Automated Distribution System that addresses the critical limitations of conventional manual water testing and distribution methods. The proposed system integrates an ESP32 microcontroller with a pH sensor, DS18B20 temperature sensor, turbidity sensor, and TDS sensor to continuously measure five key water quality parameters pH, temperature, turbidity, Total Dissolved Solids (TDS), and Electrical Conductivity (EC) in real time. By leveraging IoT technology through the Blynk cloud platform and providing on-site feedback via a 16×2 LCD display, the system ensures comprehensive dual-interface monitoring accessible both locally and remotely. The core contribution of this work lies in its autonomous classification and distribution mechanism. Based on World Health Organization (WHO) threshold standards, the system intelligently determines whether incoming water is suitable for drinking, agricultural use, or wastewater management, and actuates the corresponding solenoid valve accordingly, ensuring that only one outlet remains active at any given time to prevent cross-contamination. This eliminates the need for human intervention in the decision-making process, significantly reducing the risk of distributing unsafe water to end users.
References
[1] V. Lakshmikantha, A. Hiriyannagowda, A. Manjunath, A. Patted, J. Basavaiah, and A. A. Anthony, \"IoT based smart water quality monitoring system,\" Global Transitions Proceedings, vol. 2, no. 2, pp. 181–186, 2021.
[2] S. Konde and S. B. Deosarkar, \"IOT based water quality monitoring system,\" in Proc. Int. Conf. on Communication and Information Processing (ICCIP), Pune, India, 2020.
[3] M. S. U. Chowdury, T. B. Emran, and S. Ghosh, \"IoT based real-time river water quality monitoring system,\" Procedia Computer Science, vol. 155, pp. 161–168, 2019.
[4] Z. Rasin and M. R. Abdullah, \"Water quality monitoring system using wireless sensor network,\" International Journal of Engineering & Technology, vol. 7, no. 3, pp. 2774–2777, 2018.
[5] A. Sinaei, M. Dehghani, and M. Moattari, \"Design of a real-time water quality monitoring and control system using Internet of Things (IoT),\" Cogent Engineering, vol. 9, no. 1, p. 2143054,Nov. 2022
[6] C. Z. Zulkifli, S. Garfan, M. Talal, A. H. Alamoodi, A. Alamleh, B. B. Zaidan, and A. R. Ismail, \"IoT-based water monitoring systems: A systematic review,\" Water, vol. 14, no. 22, p. 3621, 2022.
[7] World Health Organization, Guidelines for Drinking-water Quality, 4th ed. Geneva, Switzerland: WHO Press, 2022.
[8] N. A. M. Leh, \"IoT based water quality monitoring system and evaluation,\" in Proc. 10th IEEE Int. Conf. on Control System, Computing and Engineering (ICCSCE), Penang, Malaysia, 2020.
[9] M. Mukta, S. Islam, S. D. Barman, A. W. Reza, and M. S. H. Khan, \"IoT based smart water quality monitoring system,\" in Proc. IEEE 4th Int. Conf. on Computing and Communication Systems (ICCCS), Singapore, 2019.