- Research note
- Open Access
Design and assembly of a domestic water temperature, pH and turbidity monitoring system
BMC Research Notes volume 14, Article number: 161 (2021)
The aim of this study was to design a domestic water temperature, pH and turbidity monitoring system that could constantly log temperature, pH and turbidity of water and give alerts in case the parameters are outside the acceptable limits for potable water.
The system was designed, assembled and performed as expected. The study indicates that the proposed and designed system outperforms the existing manual monitoring system as it can constantly track and store changes in water quality. This could be used to prepare better treatment processes as well as identify problems in the water distribution system early enough.
Availability of clean and safe water is a necessity for life on planet earth and the fuel for sustainable development [1,2,3,4]. However, declining water quality has become a global problem [5, 6]. Sub-Saharan Africa is one of the regions of the world with limited access to clean and safe water [7, 8]. Uganda is among the most hit countries in the Sub-Sahara with water scarcity problem . Yearly, more than 1000 Ugandans die of water borne diseases . The Ugandan government through Ministry of Environment and other private companies has tried to deliver safe water but only 71% of the urban population access piped water . This implies that the rest of the population uses unsafe water which makes them highly susceptible to water-borne diseases like cholera, diarrhoea and typhoid.
Water distribution networks are designed with minimum levels of risk of contamination but factors like leakages, bursts, changes in temperature and under dosing of chlorine increases risk of contamination especially when they occur in vulnerable areas like along storm water channels or slums. This poses a dire need to monitor the changes in water quality along the distribution network. Water quality management relies on hazard identification through surveillance (routine and manual monitoring) . To understand water quality and its probable impacts, there is need to collect and monitor data from time to time. With the industry 4.0 revolution , there is need to embrace new technologies to make water quality monitoring easy [14,15,16,17,18].
The current study was undertaken to develop a domestic water temperature, pH and turbidity monitoring system that can constantly monitor domestic water points like reservoirs and storage tanks, and automatically notify the concerned personnel when water quality falls below the set standards. This is in line with target 1 of the United Nations’ sixth Sustainable Development Goal which targets the achievement of “universal and equitable access to safe and affordable drinking water for all by 2030”.
Materials and system design
The proposed domestic water temperature, pH and turbidity monitoring system consisted of a network of 3 sensors for collecting data on temperature, pH and turbidity of water. These sensors were connected to an Arduino microcontroller which processes the data before relaying it to a cloud platform through a Wi-Fi module. From the cloud platform, the information is pulled and displayed on a website. The authorities in charge are then able to monitor the data for the different water quality parameters as well as analyse the data in form of graphs. Should the data collected vary from the set standards, then the authorities are alerted instantly. Figure 1 shows the block diagram of the proposed system.
The Arduino Uno used in this system is a microcontroller board based on ATmega 328P . It was chosen because it has enough analog input pins to cater for the three analog sensors used. The waterproof DS18B20 temperature sensor is used to measure temperatures in wet environments with a simple 1-Wire interface . It provides 9 to 12-bit Celsius temperature measurements and communicates over a 1-Wire bus that by definition requires only one data line (and ground) for communication with a central microprocessor . The gravity analog pH sensor have a range of 0 to 14, which is measured between 0 to 60 °C . The turbidity sensor detects suspended particles in water by measuring light transmittance and scattering rate which changes with the amount of total suspended solids . It contains a light transmitter and receiver. When the water is clear, light scattering is minimal hence the light receiver receives the most amount of light. As turbidity of the water increases, the light receiver receives less light. The sensor detects when the light received is below a certain threshold.
The NodeMCU board was equipped with an ESP-12E module, which has an ESP8266 core processor with a module of 4 MB flash memory. With this board, the system was able to connect to internet and send the logged parameter data to the respective ThingSpeak channel fields. From the platform, the channel feeds are retrieved. That is, field data is displayed in the frontend application. Additional file 1: Figure S1 shows the algorithmic flow of the system when placed in water.
Results and discussion
The current water quality monitoring tools range from traditional sample collection to remote sensing technologies in the world, with some time consuming, labour intensive or are too costly. In Uganda, routine monitoring is done by National Water and Sewerage Cooperation (NWSC) by sampling and testing once every quarter . One of the key findings of monitoring drinking water samples by NWSC in areas of Kampala, Mukono and Wakiso districts was that delayed maintenance of the distribution network poses high risks of water contamination .
In this study, we designed a water quality monitoring system with sensors that are able to log data and process it with the Arduino Uno before it is sent serially to a NodeMCU. Figure 2 shows a successful connection of the NodeMCU to the internet. Once connected, the values sent serially from Arduino Uno board are pushed to the ThingSpeak platform for storage and analysis. On the ThingSpeak platform, the values for each parameter are recorded as they come in and are presented in graphical forms as shown in Fig. 3 and Additional file 2: Figure S2. These graphs are then displayed on the website.
When it was placed in clear tap water, the system indicated that the pH was 7.54 and turbidity was 0.00 which is in line with the NWSC standards for pumped and treated water. When placed in water with settled dirt, the system displayed that the turbidity was 2969 NTUs which makes the water unpalatable since it lies out of range of the acceptable standards (greater than 5 NTUs). When placed in muddy water, the system displayed that the turbidity was 3000 NTUs which means the water was unpalatable since its turbidity was beyond the acceptable limit. All the data were captured and displayed on the website as the most recent parameter status reading. The graphs and tabular format as presented in Additional file 3: Figure S3.
When temperature is below 20.0 °C, it indicates ‘‘LOW’’, greater than 26.0 °C indicates ‘‘HIGH’’ while ‘‘NORMAL’’ is for temperature between 20.0 and 25.5 °C. When the pH level is below 6.8, the status display on the website is “LOW”. When it is between 6.8–8.8, it shows “NORMAL” and “HIGH” when above 8.8. For turbidity values equal to or less than 5 NTUs, the status shown is “NORMAL” while for values above 5 NTUs, “HIGH” is displayed.
The designed system therefore had water quality sensors that transform detected chemical signals into electrical signals that can be translated into temperature, pH and turbidity measurements (Additional file 3: Figure S3). The results of this study corroborates a report by Azman et al.  who designed a low-cost nephelometric turbidity sensor for continual domestic water quality monitoring system. In another study , the authors reported that a sensor-based water pollution detection performed better than the traditional monitoring systems in homes and offices because it provided a real-time pH turbidity and temperature measurement which could enhance water quality monitoring. Another study  designed a system close to the one designed in the study but did not include the turbidity and temperature sensors. The current designed system is automatic, uses internet (Wi-Fi), is time saving, affordable with low maintenance cost and could prevent the spread of water-borne diseases through drinking water.
While the designed system saves on labour costs and time, it can only be used in a place with a good internet coverage to be able to relay the data to the cloud and consequently the web application. Further studies should incorporate more sensors for other water quality parameters such as nitrates, conductivity and total dissolved solids.
Availability of data and materials
The datasets supporting the conclusions of this study are available from the corresponding author upon reasonable request.
WHO. Drinking-water; 2019. https://www.who.int/news-room/factsheets/detail/drinking-water. Accessed 04 Jan 2021.
Ngowi HA. Prevalence and pattern of waterborne parasitic infections in eastern Africa: a systematic scoping review. Food Waterborne Parasitol. 2020;20:e00089.
Omara T, Nteziyaremye P, Akaganyira S, Opio DW, Karanja LN, Nyangena DM, et al. Physicochemical quality of water and health risks associated with consumption of African lung fish (Protopterus annectens) from Nyabarongo and Nyabugogo rivers, Rwanda. BMC Res Notes. 2020;13:66.
Nafi’u A, Anandapandian KTK. The occurrence of waterborne diseases in drinking water in Nakaloke Sub-county, Mbale district, Uganda. Int J Sci Res. 2016;5:1416–21.
Omara T, Karungi S, Kalukusu R, Nakabuye BV, Kagoya S, Musau B. Mercuric pollution of surface water, superficial sediments, Nile Tilapia (Oreochromis nilotica Linnaeus 1758 [Cichlidae]) and yams (Dioscorea alata) in auriferous areas of Namukombe stream, Syanyonja, Busia. Uganda PeerJ. 2019;7:e7919.
Odonkor ST, Mahami T. Escherichia coli as a tool for disease risk assessment of drinking water sources. Int J Microbiol. 2020;2020:2534130.
BORGEN Magazine. Poor Sanitation in Kenya Leads to Water-Borne Diseases. 2020. https://www.borgenmagazine.com/sanitation-in-kenya-2/. Accessed 20 Jan 2021.
Marks SJ, Clair-Caliot G, Taing L, Bamwenda JT, Kanyesigye C, Rwendeire NE, et al. Water supply and sanitation services in small towns in rural–urban transition zones: the case of Bushenyi-Ishaka Municipality, Uganda. NPJ Clean Water. 2020;3:21.
Huston A, Gaskin S, Moriarty P, Martin W. More sustainable systems through consolidation? The changing landscape of rural drinking water service delivery in Uganda. Water Altern. 2021;14:248–70.
Disaster Relief Emergency Fund (DREF). Cholera Outbreak in Mbale District. The International Federation of Red Cross and Red Crescent. 2012, 9 pages.
Water and Environment Sector Performance Report 2018. Government of Uganda. Ministry of Water and Environment, Kampala, Uganda; 2018. p. 1–264
Gara T, Fengting L, Nhapi I, Makate C, Gumindoga W. Health safety of drinking water supplied in Africa: a closer look using applicable water-quality standards as a measure. Expo Health. 2018;10:117–28.
Bongomin O, Ocen GG, Nganyi EO, Musinguzi A, Omara T. Exponential disruptive technologies and the required skills of industry 4.0. J Eng. 2020;2020:4280156.
Sendra S, Parra L, Lloret J, Jiménez JM. Oceanographic multisensor buoy based on low cost sensors for Posidonia Meadows monitoring in Mediterranean Sea. J Sens. 2015;2015:920168.
Geetha S, Gouthami S. Internet of things enabled real time water quality monitoring system. Smart Water. 2016;2:1.
Mamun KA, Islam FR, Haque R, Khan MGM, Prasad AN, Haqva H, Mudliar RR, Mani FS. Smart water quality monitoring system design and KPIs analysis: case sites of fiji surface water. Sustainability. 2019;11:7110.
Saravanan K, Anusuya E, Kumar R, Son LH. Real-time water quality monitoring using Internet of Things in SCADA. Environ Monit Assess. 2018;190:556.
Obado SA. IoT Based realtime fish pond water quality monitoring model. MSc Thesis, Strathmore University, Nairobi, Kenya. 2019.
Koritsoglou K, Christou V, Ntritsos G, Tsoumanis G, Tsipouras MG, Giannakeas N, et al. Improving the accuracy of low-cost sensor measurements for freezer automation. Sensors. 2020;20:6389.
Pratami LWD, Ariswati HG, Titisari D. Effect of temperature on ph meter based on arduino uno with internal calibration. J Electron Electromed Med Inf. 2020;2:23–7.
Thenkabail PS. Hyperspectral Remote Sensing for Terrestrial Applications. In: Thenkabail PS, editor. “Remote Sensing Handbook” (Volume II): land resources monitoring, modeling, and mapping with remote sensing. Boca Raton: Taylor and Francis Inc.\CRC Press; 2015. p. 201–36.
Ministry of Water and Environment, Uganda Water And Environment Sector Performance Report 2019. 2019. https://www.mwe.go.ug/sites/default/files/library/SPR%20FINAL%20BOOK%202019.pdf. Accessed 07 Jan 2021.
Azman AA, Rahiman MHF, Taib MN, Sidek NH, Abu Bakar IA, Ali MF. A low cost nephelometric turbidity sensor for continual domestic water quality monitoring system. IEEE International Conference on Automatic Control and Intelligent Systems (I2CACIS), Selangor, Malaysia. 2016, p. 202–7.
Deepiga T, Sivasankari A. Smart water monitoring system using wireless sensor network at home/office. Int Res J Eng Technol. 2015;02:1305–14.
Hasan MT, Khan S. GSM based automatic water quality control. Int J Adv Res Elect Electron Inst Eng. 2016;5:5522–9.
This research received no external funding.
Ethics approval and consent to participate
Consent for publication
The authors declare that there is no conflict of interest regarding the publication of this paper.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Additional file 1: Figure S1.
Logical flow of the domestic water temperature, pH and turbidity monitoring system.
Additional file 2: Figure S2.
ThingSpeak turbidity chart.
Additional file 3: Figure S3.
Website for visualization of the logged parameter data.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Nanyanzi, D.R., Ocen, G.G., Omara, T. et al. Design and assembly of a domestic water temperature, pH and turbidity monitoring system. BMC Res Notes 14, 161 (2021). https://doi.org/10.1186/s13104-021-05578-9
- Internet of Things
- Water quality