Next Article in Journal
Satellite Data Potentialities in Solid Waste Landfill Monitoring: Review and Case Studies
Next Article in Special Issue
An Improvement Strategy for Indoor Air Quality Monitoring Systems
Previous Article in Journal
A Fast and Low-Power Detection System for the Missing Pin Chip Based on YOLOv4-Tiny Algorithm
Previous Article in Special Issue
Tackling Age of Information in Access Policies for Sensing Ecosystems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Low-Cost Internet-of-Things Water-Quality Monitoring System for Rural Areas

1
Faculty of Automation and Computers, Politehnica University of Timișoara, 300006 Timisoara, Romania
2
Research Center for Engineering and Management, Politehnica University of Timișoara, 300006 Timisoara, Romania
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(8), 3919; https://doi.org/10.3390/s23083919
Submission received: 6 March 2023 / Revised: 5 April 2023 / Accepted: 6 April 2023 / Published: 12 April 2023
(This article belongs to the Special Issue Metrology for Living Environment)

Abstract

:
Water is a vital source for life and natural environments. This is the reason why water sources should be constantly monitored in order to detect any pollutants that might jeopardize the quality of water. This paper presents a low-cost internet-of-things system that is capable of measuring and reporting the quality of different water sources. It comprises the following components: Arduino UNO board, Bluetooth module BT04, temperature sensor DS18B20, pH sensor—SEN0161, TDS sensor—SEN0244, turbidity sensor—SKU SEN0189. The system will be controlled and managed from a mobile application, which will monitor the actual status of water sources. We propose to monitor and evaluate the quality of water from five different water sources in a rural settlement. The results show that most of the water sources we have monitored are proper for consumption, with a single exception where the TDS values are not within proper limits, as they outperform the maximum accepted value of 500 ppm.

1. Introduction

Water is an indispensable source for life, economic development, and balance in the natural environment. These are some reasons why the preservation of its quality is of utmost importance for humankind. There are two main challenges in the quality of water that we are dealing with worldwide: the lack of water sources in certain regions of the world and the consumption of contaminated water by at least two billion people, according to the World Health Organization (WHO) [1]. This means that these lives are endangered, contaminated water being tightly connected with the transmission of diseases such as cholera, diarrhea, type-A hepatitis, typhoid fever, dysentery, and polio. Diarrhea causes approximately 500,000 deaths each year [2,3]. In addition to this, contaminated water or water which has inadequate characteristics represents a main factor for the triggering or worsening of kidney diseases. Each year, kidney diseases cause as many deaths as those caused by cancer [3]. An important part of the population doesn’t consume bottled water, choosing public fountains, water pumps, or natural water sources in mountain areas. Alternative sources could be unsafe, because they are tested occasionally or never. Water quality and purity is a problem in different parts of the world, and different countermeasures and sustainable scenarios are being developed [4,5]. Different pollutants being present in water may also present a threat to the integrity of ecosystems. These affect plants and animals by compromising them, as well as by facilitating the development of viruses and bacteria. These in turn end up reaching human beings and are the causes of various diseases [6].
From another perspective, by 2050, over 85% of freshwater sources will be needed for agricultural purposes [7]; therefore, the quality of water should be monitored and assured to be proper for this purpose [8]. In the past, the overutilization of natural resources, pollutants, and the lack of legal framework implementation have led to water pollution in different areas of the world. One such region where different improvements have been implemented and different projects are running is that of Timis County, in Romania [9,10]. Here, specific European Union laws are being implemented, which is why water pollution has begun to be addressed by several approaches.
As the importance of monitoring and preserving the water quality in a large spectrum of sources has been largely highlighted, advanced but also low-cost technologies are used in the process. Inspired by these worldwide problems and statistics, as well as the support that retaining water quality receives from the European Union and local administrations, we have developed the idea of implementing a simple low-cost solution for water testing which will also keep people informed about the quality of water they are drinking. Correct information can prevent diseases, save lives, and improve quality of life. Our aim is to focus on rural areas in Romania, which is why our experiments have been conducted in the Gataia locality in Timis County. As the integration of water monitoring solutions has offered different architectural and technical solutions over the past several years, our aim is to validate existing knowledge from different scientific literature in terms of technical approaches, communication technologies, test conditions, lessons learned, and limitations in order to produce a low-cost approach that could be used in different rural areas which are currently on the verge of an increased developing slope. The obtained results offer a new perspective on the subject of water pollutant measurements, with respect to technical implementations, methodologies, and limitations, as well as highlighting the importance of such systems being developed in certain regions such as the one under study.
Our research aims to achieve several goals, highlighted here as the research questions of the paper: (RQ1) implement a water prototype internet-of-things system based on a low-cost board and different sensors; (RQ2) design the system to be controlled and managed from a mobile application, which will monitor the actual status of water sources, also offering the possibility of retesting them and offering updates, information, and recommendations to users in a real-time manner; (RQ3) monitor and evaluate the quality of water from different water sources, in a rural settlement, by taking into consideration specific measurement metrics. Our personal motivation for writing this present paper is to offer to the research public our experience of developing this system in a rural area that might benefit.
The rest of the paper continues: Section 1.1 presents basic concepts on the measured parameters used in this project; Section 2 presents state-of-the-art literature on water monitoring and specific techniques and systems developed for this goal, followed by Section 3 detailing the methodology used for our approach, as well as the proposed solution; Section 4 presents the experiments conducted to determine the quality of water sources in a certain locality, while Section 5 is reserved for the conclusions of our present research.

1.1. Measured Parameters

The pH of a solution is the negative of the logarithm of the hydrogen ion activity:
p H = log ( H + )
Measuring the pH of water provides a reflection of the acid–base balance, which is usually determined by the balance between carbon dioxide and bicarbonate carbonate [11]. The pH value increases if the concentration of carbon dioxide decreases and will decrease otherwise. Another factor that affects the pH balance is temperature; this must be taken into account when we take measurements. The pH of drinking water must have a value between 6.5 and 8.5.
A low pH of water causes the potential level of corrosion to increase; thus, the health effects are indirect through an increased ingestion of metals from plumbing or pipes and inadequate disinfection due to the lower pH. For water to be effectively disinfected with chlorine, the pH must be less than 8.
Water turbidity is a measure of the amount of light spread by the matter in a liquid when a light shines, making it an optical characteristic. The turbidity increases with the intensity of the light. Turbidity is caused by organic matter with very small dimensions, various colored organic compounds as solutes, plankton, and microscopic organisms.
The unit of measurement for turbidity is the nephelometric turbidity unit (NTU) and the optimal value for drinkable water is below 1 NTU, according to the WHO. However, if decontamination is proven, a turbidity with values less than 5 NTU is permitted. Water turbidity offers a favorable medium for the development of germs. This can lead to the occurrence of pest holes for illnesses that primarily affect the intestines. Research shows that there is a strong connection between removing the turbidity of the water and removing the protozoans.
Total dissolved solids (TDS) is the term used to describe the inorganic salts and small amounts of organic matter present in solution in water. The principal constituents are usually calcium, magnesium, sodium, and potassium cations and carbonate, hydrogen carbonate, chloride, sulfate, and nitrate anions [12]. Total dissolved solids are measured as water volume using the unit mg/l, also known as parts per million (ppm).
The TDS level has been classified according to the taste of drinkable water, as follows:
  • Excellent: <300 ppm;
  • Satisfactory: 300–600 ppm;
  • Suitable/appropriate: 600–900 ppm;
  • Scarce: 900–1200 ppm;
  • Inadmissible: >1200 ppm.
According to the health recommendations for people, the classification is as follows:
  • Between 50 and 150 ppm—excellent for consumption;
  • 150–250 ppm—good;
  • 250–300 ppm—equitable;
  • 300–500 ppm—scarce;
  • >1200 ppm—inadmissible.
The maximum level accepted for drinkable water is regulated by the EPA—Environmental Protection Agency—at a maximum of 500 ppm.

2. Previous Work

With both ground and surface water representing a vital resource for humans and other living species, a constant focus is kept on measuring the pollutants that might affect such a resource. The continuous development of IoT solutions during the last decade allows a real-time measurement of the water-quality levels for a large spectrum of applications. The following literature review was conducted based on research papers published after 2017, addressing the importance of water-quality measurement and providing various solutions. The succeeding paragraphs present the identified articles, grouped based on the described water-quality monitoring applications and solutions.

2.1. Specific Water-Quality Monitoring Applications

While assiduously analyzing the selected research papers, specific water-quality monitoring applications were identified which are reviewed below. In their work, Hafeez et al. [13] address the importance of monitoring case-II classified coastal waters. The authors focus on Hong Kong coastal waters and propose a solution for improving water-quality estimates by using machine learning. It has been concluded that the most accurate quality indicators were provided by the artificial neural network machine-learning model and satellite data. Similarly, Zompanti et al. [14] concentrated on monitoring the sea water iodide for assuring the quality of seafood. A multi-sensor approach was proposed to evaluate the seawater iodate level and thus to assess the quality of seafood. Their study proved the feasibility of the proposed proof-of-concept. Lu et al. [15] compared nine different machine-learning algorithms and using an unmanned aerial vehicle (UAV) borne for data collection. Concluding that the Catboost regression model offers the best prediction, a map was generated in order to identify polluted water areas. Likewise, Liu et al. [16] designed a UAV for air–water-quality monitoring activities of the Yangtze River. With a Chl-a distribution and a monitoring method based on acousto-optic tunable (AOTF) technology, the UAV-borne has been proven to be a reliable tool for water-quality spectral analysis. A multi-function unmanned surface vehicle (MF-USV) was designed and presented by Chang et al. [17] for water-quality analysis and water surface cleaning. Several other functions such as obstacle detection and avoidance were implemented and presented in the paper with experimental results verifying their effectiveness. In their paper, Tang et al. [18] presented a water intake monitoring system for livestock based on Arduino development boards. The proposed system can monitor the water quality but also track and identify each animal in order to conduct further animal water consumption studies. Another solution based on UAC and IoT for monitoring livestock was presented by Behjati et al. [19]. Microwave sensors were used by Frau et al. [20] to detect trace metals in polluted mining area waters. The authors described a novel technique making use of both microwave spectroscopy and planar sensors to monitor the water quality in real time. A similar approach was followed by Russul et al. [21] who used microwave sensors, similar to a microwave resonator, to detect the water content in crude oil. The obtained results of the experiments were found to be in line with the associated simulated results. An interesting approach was followed by Zeng et al. [22], who proposed a digital camera colorimetry setup that is able to examine the relationship between water color and its chemical composition.

2.2. Groundwater-Quality Monitoring

The following research papers propose various solutions for monitoring groundwater-quality levels. Shadrin et al. [23] present in their work a technique for computing the weighted water-quality index and to further provide a map containing area predictions of the water-quality index. Their proposed technique was validated in New Moscow where drinking water is provided mainly from the available groundwater. Another groundwater-quality mapping approach was described by Lawrence et al. [24] for a small island area of the Philippines, using a neural network with the particle-swarm optimization method. A machine-learning approach was used by Eslam A. et al. [25] in order to predict the availability of groundwater. The proposed solution including a global feature resulted from a Gaussian mixture model has proven to provide lower errors in groundwater-availability prediction. Focusing again on groundwater-quality assessment, Paepae et al. [26] reviewed the feasibility of using data-derived virtual sensors as an alternative to real-time sensor technologies. A review of the state-of-the-art literature was conducted underlining the necessity of developing a comprehensive virtual sensing system for IoT environments. Machine-learning methods were used for the first time by Mosavi et al. [27] to predict the hardness of groundwater. In their work, a comparative study was conducted between boosted regression tree and random forest machine-learning models.

2.3. Surface Water-Quality Monitoring

A case study conducted by Ferencz and Dawidek [28] focuses on the water quality of a Polish polymictic lake. Described as a critical lake management activity, monitoring vertical and horizontal variability values of the water must be conducted for assuring aquatic life. The water-monitoring method used—based on a nearest neighbor—proved to be more accurate in highlighting the fluctuation of the physical and chemical lake water parameters. Similarly, a case study was conducted by Ouali et al. [29] focusing on the Hassan Addakhil dam in Morocco. Using a modeling approach and remote sensors, the authors propose a spatiotemporal water-quality measuring technique. The selected and presented approach has provided results validating the methodology for mapping the quality of the water reservoir. By using a Raspberry Pi, Budiarti et al. [30] proposed an intelligent and automated surface monitoring system that is capable of transmitting real-time information. In their published work, Zhao et al. [31] aimed to understand whether third-party water-quality monitoring activities have improved China’s environmental data. Even with a certain amount of discontinued data monitoring, the research proved that third-party organizations have helped in the reduction in data manipulation of local governances and ensured more accurate and consistent water-quality environment data. Zhu et al. [32] proposed a solution for monitoring the dynamic water changes in Poyang Lake. The authors developed an algorithm based on texture feature, feature fusion, and target segmentation for a synthetic aperture radar system that was used for water-quality monitoring. The results were proven to be accurate as they were compared to actual hydrological data. Naloufi et al. [33] evaluated the various models that have been developed to predict the microbial quality of surface waters and provide a guideline for choosing the appropriate machine-learning model and sampling. Rodriguez et al. [34] assessed several machine-learning models for water-quality detection at Santa Lucia Chico river stations. The proposed approach of their research paper is now expected to help in improving water-quality datasets and therefore overcome missing important datasets. The importance of bettering the image special resolution and mitigating the interference of mixed pixels in cases of monitoring the water quality of small rivers are highlighted by Huangfu et al. [35]. The processed Setinel-2 images using the super-resolution algorithm have proven the potential of the algorithm in improving the retrieval accuracy of several water-quality parameters.

2.4. Potable Water-Quality Monitoring

Many resource papers provide different solutions for monitoring potable water, as it is a vital source of life. Contaminated water leads to millions of deaths each year and it is the cause for many diseases, so the following solutions are life-saving.
Wong Jun Hong et al. [36] published a simple Arduino-based solution with multiple attached sensors that has some inaccuracies and needs human assistance, but it is a foundation for future works. Sami O. Osman et al. [37] also used Arduino and sensors for designing an in situ real-time measurement system for water-quality parameters, which is a low-cost and accurate solution. Going further, a similar system that uses Bluetooth to send the values of water parameters on a smartphone was built by Chenwei Feng et al. [38].
Likewise, Yogesh K. Taru and Anil Karwankar [39] implemented a solution for water-parameter monitoring interfacing Arduino with LabVIEW. As a more advanced technological approach, Ms. Ch. Sowmya et al. [40] described in their paper a solution with wireless sensor network technology for online and real-time water-quality monitoring, where each sensor node has an Arduino microcontroller and attached sensors that continuously measure the most important water parameters—pH, temperature, and conductivity. Irish Franz Almojela et al. [41] also used WSN in their published work, using two nodes and displaying the data on an LCD and ThingSpeak channel. The water parameters and alarm are sent as an SMS notification and, for an alarm, the system also integrated a buzzer. Another real-time system was proposed by Budiarti et al. [30] using a Raspberry Pi, as mentioned earlier.
Various real-time systems are implemented using the concept of IoT, such as the one proposed by Sabari et al. [42] that used an Arduino as a microcontroller and a Wi-fi module for viewing the water-parameter values on the cloud. In addition, Ali Hadi Abdulwahid [43] proposed a similar solution, using the same IoT concept and accomplishing the visualization of data on the cloud. Dr. Nageswara Rao Moparthi et al. [44] have published a solution for notifying the corresponding authorities about water contamination using Arduino. For the message technique, they used a GSM module and extended the work by sending the sensor data via the cloud. L. Lakshmananet al. [45] also used a GSM module connected to Arduino for measuring water-quality parameters with sensors and displaying the results on a webpage. Data were also stored on the cloud so others could access it.
Rajesh Singh et al. [8] went to the next level, using an industrial IoT with hardware architecture designed for water-level measuring and quality that uses radiofrequency communication and a cloud-enabled app for visualizing the data. Another approach for monitoring potable water was described in Arif Ul Alam, Dennis Clyne, and M. Jamal Deen’s resource paper [46]. They developed a low-cost multi-parameter water-quality monitoring system, which uses high-sensitivity electrochemical sensors and custom-designed circuitry that communicates with an Android app. This is a much more affordable testing system than testing the water in dedicated laboratories and can be easily programmed and adapted.

2.5. Machine Learning for Water-Quality Monitoring

Machine learning has been a huge step in technology, as it provides futuristic and efficient ways in detecting, monitoring, and improving water-quality systems. In our research, we have found various solutions and important work that has been published in that direction.
An interesting solution for calculating a water index based on inputs such as temperature, pH, total dissolved solids, and turbidity using different machine-learning algorithms was published by Ahmed Umair et al. [47]. Their conclusion shows that the best precision for the water index is achieved using these two algorithms: gradient boosting, with a learning rate of 0.1; and polynomial regression, with a degree of 2. Likewise, we have mentioned in a previous section the study by Lu et al. [15] that also tested machine-learning algorithms for water testing.
Machine-learning techniques were also used by Hussein Eslam et al. [25] and Huangfu Kuan [35] in their studies on groundwater, as previously mentioned. For predicting handover events based on historically collected handover events, Esraa Eldesouky et al. [48] used machine-learning algorithms in an underwater wireless sensor network.
Another very interesting study can be found in the work of Arias-Rodriguez et al. [49], who conducted a case study in Mexico that uses remote-sensing-based machine-learning approaches for estimating the water-quality parameters. They used in situ collected measurements and remote-sensing reflectance data gathered from MERIS—the medium resolution imaging spectrometer, demonstrating the utility of satellite observations in monitoring inland water. Similarly, also in Mexico, Leonardo F. Arias-Rodriguez et al. [50] in their paper conclude that remote sensing is very useful for monitoring and can bring improvements in water-quality monitoring programs due to its progressive integration. Remote-sensing using machine-learning techniques was also used in the case study of Hafeez Sidrah et al. [13] in Hong Kong for estimating coastal water quality. A higher accuracy was achieved by an artificial neural network.
On the other hand, Pu Fangling et al. [51] proposed an alternative for solving the issues that remote sensing may have, using a convolutional neural network (CNN) with a hierarchical structure that represents the relationship between Landsat8 images and in situ measurements. They successfully demonstrated that CNN widely outperforms the machine-learning methods. Other machine-learning models have been evaluated by Naloufi et al. [33] for microbial water quality and by Rodriguez et al. [34] for water-quality detection: we have previously described their approaches.
Stajkowski Stephen et al. [52] suggested a premier approach in this domain, as they sustain in their paper, that uses a genetic-algorithm-optimized long short-term memory (LSTM) technique to predict river water temperature. Their goal was to use advanced machine-learning methods in order to create a tool that is compatible with a real-time network of water-quality monitoring stations for proactive water-quality management.
Lastly, a very interesting resource paper was published by Post Claudia et al. [53] which can be used in order to detect chemical pollutants, such as nitrates, pharmaceuticals, or microplastics. The study uses a UV Raman spectrometer for the detection of nitrate/nitrite, selected pharmaceuticals, and the most widespread microplastic polymers. The results show that nitrates and nitrites can be detected and quantified but the microplastic particles measurements suffer due to their heterogeneous distribution.
A detailed comparison of different studies from all the references we have studied is presented in Table 1. This summary is also offering insights into comparing previous studies with the current approach.

3. Materials and Components

The system presented in this paper offers a prototype implementation of an internet-of-things water-testing solution based on an Arduino UNO board and different sensors. The research methodology (Figure 1) that our project implemented comprises the following steps:
  • Discuss the measured parameters that the project is aiming at (Section 1);
  • Build a low-cost prototype capable of measuring different water parameters from different water sources (Section 3 and Section 3.1);
  • Implement a mobile application to receive data from the sensors, such as the DS18B20 temperature sensor, SEN0161 pH sensor, TDS SEN0244 sensor, and turbidity sensor SKU SEN0189 (Section 4);
  • Calibrate the sensors in order to obtain accurate values from different measurements (Section 5);
  • Perform the measurement of different water parameters from several water sources in a rural setting (Section 6);
  • Analyze and discuss the obtained results, as well as make the results available to the public through their apps (Section 6).
The system will be controlled and managed from a mobile application, which will monitor the actual status of water sources, also offering the possibility of retesting them and offering updates, information, and recommendations to users in a real-time manner. We have performed a case study for the Gataia locality, in the western part of Romania, by testing five water sources, which represent the main drinking and cooking sources for locals. The water status system and application have the purpose of informing people and protecting people through information, prevention messages, recommendations, and alerts regarding water consumption from drinkable water sources. The retesting of water sources at short periods of time is also facilitated through the application’s interface. The system only requires the power-up of the Arduino board and the submergence of the sensors into the water. The application is responsible for the other tasks such as receiving the values via Bluetooth, database updates, and users’ notification.

3.1. Setup and Connections

In order to understand the functioning of the entire system, including the mobile application, we present the general architecture of the system below (Figure 2). The water status application communicates with the system composed of an Arduino board, sensors, and a Bluetooth module. The Bluetooth module ensures communication between the hardware system and the Android mobile application.
The hardware architecture (Figure 3) is composed of several peripherals. These can be noted in Figure 4, which presents the physical connections of the hardware components. Our approach is orientated towards a low-cost system architecture which could be afforded by anyone who would like to perform measurements. The prices for the components are presented in Table 2 and the list of peripherals is:
  • Arduino microcontroller (label 1, in Figure 4);
  • Power source (label 2);
  • BT04-A Bluetooth module (label 3) for data transmission to the dedicated mobile app;
  • Sensors—DS18B20 temperature sensor (label A), SEN0161 pH sensor (label B), SEN0244 TDS sensor (label C), and turbidity sensor SKU SEN0189 (label D).
The connections of the system are as follows:
  • Arduino board: connected through a USB cable to a power source (or laptop/PC);
  • Bluetooth BT04-A module: GND to Arduino GND (black wire), VCC to 5 V (red wire), Tx to Arduino Rx—pin 0 (blue wire), Rx to Arduino Tx—pin 1 (yellow wire);
  • DS18B20 temperature sensor: connected to GND (black wire), to 5 V (red wire), and to pin 13 of the Arduino board (yellow wire), by using a 1.2 KΩ resistor;
  • SEN0161 pH sensor: connected to GND (black wire), to 5 V (orange wire), and to pin A2 of the Arduino board (blue wire);
  • TDS SEN0244 sensor: connected to GND (black wire), to 5 V (red wire), and to pin A1 of the Arduino board (green wire);
  • SKU SEN0189 turbidity sensor: connected to GND (black wire), to 5 V (orange wire), and to pin A0 of the Arduino board (blue wire).
As can be noted in Figure 3 and Figure 4, we have used four sensors in order to collect relevant data about water quality:
  • The DS18B20 temperature sensor is a programmable sensor with a single wire and it is used for measuring the temperature in different environments; due to its waterproof case, it is used for measuring the water temperature. This sensor is easy to use and its connection to the Arduino board requires only one data pin, along with a pull-up resistor.
  • The SEN0161 pH sensor is an analog sensor for pH measurement, which is particularly designed for Arduino development boards, featuring simple characteristics and connections. It contains an LED for supply voltage indication, a BNC connector, and a PH0.2 interface.
  • The TDS SEN0244 sensor (for total dissolved solids) is also an analog sensor, easy to use, and Arduino-compatible, which measures the TDS value of water and it transmits it to the system.
  • The turbidity sensor SKU SEN0189 is also an analog sensor, easy to use, and Arduino-compatible. This offers a response depending on the light amount that passes through a liquid, thereby being able to detect the number of total suspended solids—TSS.

4. Software Architecture

In order to describe the software architecture of the application, we will define each module separately. An overall schematic of the architecture is presented in Figure 5, which contains the use cases of the application, as well as the role of the integrated technologies and the role of the hardware system.

4.1. Water Status Mobile Application

By using the water status application, the users can check the status of all potable water sources from the city. The parameters that the application will provide will be the pH level, the total dissolved solids, and the water turbidity. In addition, recommendations or alerts will be issued according to these metrics. In the case of extreme measured values, a warning message will be displayed, in order to prevent the consumption of water from that source. The users will be provided with a map where the drinkable water sources are displayed. When the water source is being retested, the user will be notified of this in real time. The notification becomes very useful when a water source becomes contaminated due to acid elements from the rain or ecological accidents that affect the underground water.
The administrator of the application has a key role because they should periodically retest the water sources, in order to provide relevant and up-to-date data. The administrator will have an account in order to log in. This secure access will prevent unauthorized access. For the locality of Gataia, this role could be fulfilled by the hydrotechnical engineer, who is responsible for the region’s rivers and the drinkable water sources.
Through Bluetooth communication, when pressing a button in the application, the Arduino-based system reads the values from the sensors about the tested water metrics and displays them for the administrator. The administrator can also restart the sensors’ readings in order to ensure that the values are real and error-free. The application also offers the feature of updating the database. All users will be notified about the retesting of the water source.
The main activity of the application (Figure 6a) allows the user to reach the secondary activity, which will offer the possibility to choose between the drinkable water sources of interest. A common user doesn’t need an account to log in in order to access the application because this application should be used by people belonging to all age categories. Similarly, starting from the main activity, the admin will touch the text element of the TextView type, called textAdmin, which will redirect them to another authentication activity. For the administrator, this security feature is required through authentication because they are responsible for the retesting of the water sources and updating the database, where the access of other users is not permitted.
The second activity (Figure 6b) which can be viewed by the user contains CardView-type elements associated with each drinkable water source from Gataia town. The user can select whichever card among the five, in order to view detailed information about that water source (Figure 7). When selecting one of the cards, a new activity is initiated associated with that water source. For each of the five drinkable water sources of Gataia town, an individual activity was created, with associated classes: source one, source two, source three, source four, and source five. For example, the source one activity offers the user information about water source one, which is the water pump situated in front of the town’s school (101 Republicii street, Gataia, Timis county). The user can view the values for pH, TDS, and water turbidity. In addition, the status and consumption recommendations will be shown: the appurtenance to optimal standards values, the recommendations related to some illnesses, or general consumption recommendations.
Starting from the previously presented activity, by clicking the map icon, the user will be redirected to the present activity, where the water sources of Gataia locality will be marked on a map portion from Google Maps. A pin is added onto the map for each water source. When touching the marker, the number and name of the water source will be displayed and, by using Google Maps services, the user will be able to obtain navigation guidelines to one of the five sources.
Another functionality dedicated to the user is that for reporting an issue. Using an email service installed on a smartphone (Gmail, Yahoo), a template will be available in order to describe the issue, for example: the water from a certain source has a strange taste, an unusual color, or if some action that could contaminate the water has been observed.
For the administrator role, the authentication activity validates the username and the password. The credentials are unique and are integrated in the application (we assume that they are familiar to the hydrotechnical engineer responsible for the locality). After the authentication process takes place, the administrator will be redirected to the water source retesting activity.
The retesting activity is conducted by reading the values from the sensors and updating the database in a real-time approach. Therefore, this activity performs two different functionalities which also depend on each other. These are implemented in two different functions, readData() and updateData() (Figure 8a,b).
In the readData() function, the connection to Bluetooth is established. In order to achieve this, an object of the type BluetoothAdapter is used. The process of managing the connectivity is implemented by using a BluetoothSocket object, using the most common RFCOMM (radio frequency communication) socket, which is a type supported by the Android APIs.
The values for updateData() will not be undertaken unless the text field—which suggests the entry of the number of the tested water source—is previously filled in. This is necessary in order to update the data of the correct reference in the real-time database (which is Firebase for the water status project). Upon obtaining the correct reference to indicate the water source, we will update the values using the function setValue (newvalue) for each parameter which is a child of the water source in the JSON tree structure of the database.

4.2. Software for the Arduino Board

The Arduino board collects the data from the sensors submerged in the water and transmits the data using the Bluetooth module towards the mobile application, when this is requested. The values from the sensors will be read only when this is requested by the administrator from the mobile app. The program will wait until it receives the value “1” via Bluetooth from the mobile app. This is transmitted from the mobile app to the system when the administrator presses the read data button, as can be noted in Figure 9.
After the request to transmit data from the sensors, the values from each sensor are read and transmitted: temperature sensors, pH, TDS, and turbidity. The temperature sensor is not relevant for the quality of the water but its value is required in the computation of the total dissolved solids.

5. Calibration of Sensors

In this subsection of the paper, we present the calibration process applied to our system. This is necessary in order to obtain error-free data from the physical measurements, which will be sent towards the Firebase database for visualization in the mobile application.
Calibration of the pH sensor implies two processes: first of all, the process of calibrating the sensor takes place, and secondly, the accuracy of the pH sensor is compared with a digital pH meter.
The steps to calibrate the pH sensor are as follows:
1.
Prepare two buffer solutions with different pH. In the scientific literature [8], the minimum of this pH is 4.00, while the maximum we found to be either pH 7.00 or pH 9.20;
2.
Dip the SEN0161 pH sensor in the pH 4.00 buffer solution;
3.
Set the sensor to read the pH as having a value of 4.00;
4.
Clear the probe with distilled water;
5.
Dip the SEN0161 pH sensor in the pH 9.20 buffer solution;
6.
Check the sensor reading;
7.
Record the difference in the sensor reading, this is the error;
8.
Clear the probe with distilled water;
9.
Dip the SEN0161 pH sensor in the solution for which the pH should be obtained;
10.
Calculate the actual pH with the following equation:
A c t u a l   p H = p H   r e a d i n g + E r r o r
11.
For the pH sensor value to be relevant and in accordance to reality, we have collected 10 successive values, we have sorted the vector, and we have used the average value. Hereafter, we have transformed this value in millivolts by using Equation (3).
V a l u e = a v e r a g e   v a l u e 5 1024 10
12.
We have multiplied by 3.5 the value from step 11, in order to obtain the pH value.
By applying the previous steps to our setup, the resulting error was 0.30 for pH 4.00 and 0.60 for pH 9.20. We present the obtained data only for 0.30, and the final values will be highlighted in Table 3, Table 4 and Table 5 in Section 5.
The calibration of the TDS sensor follows a process similar to the one described for the pH sensor. In order to increase the accuracy in measuring the TDS values, a temperature sensor such as the DS18B20 could be used for temperature compensation in order to improve accuracy [54]. A liquid solution with a known electrical conductivity or a known TDS value is required. A standard buffer solution for this purpose will have about 707 ppm. Otherwise, the reference value could be measured by means of a TDS pen.
The steps to calibrate the TDS sensor are as follows:
  • Prepare a standard buffer solution as previously described or a TDS pen;
  • Dip the TDS SEN0244 sensor in the buffer solution;
  • Clear the probe with distilled water;
  • Dip the TDS SEN0244 sensor in the solution to be measured;
  • Check the sensor reading;
  • Record the difference in the sensor reading, this is the error;
  • Clear the probe with distilled water;
  • Calculate the actual TDS value with the following equation:
A c t u a l   T D S = T D S   r e a d i n g + E r r o r
We have applied the described steps to our setup and the resulting error was 13. The final value are presented in Table 3, Table 4 and Table 5 in Section 5.

6. Testing of the Setup

The water status system concentrates on testing the three parameters previously described. The tests were performed as a basis for developing the app on the five drinkable water sources of Gataia locality, Timis County in Romania, from which the majority of the population consumes drinkable water. The testing of these water sources was performed during multiple months, testing the same quantity of water from each source. Each water sample from the five sources was tested for 3 days in a row, because people replenish their water stocks every 3 days on average. Therefore, we wanted to observe whether the drinkable water from these sources changes its characteristics when stored. The collected data from the five sources are presented in Table 2, Table 3 and Table 4.
The pH variations from Figure 10 demonstrate that each of the five sources have pH values situated between 6.5 and 8.5, considered to be the optimal interval. Therefore, the water from all sources is appropriate for consumption; we did not distinguish an acidic tendency of the water sample, nor an alkaline tendency.
For the total dissolved solids, the tests’ results demonstrate that one of the water sources outperforms not only the ideal values but also the maximum accepted value of 500 ppm, and this water source is source five—the Tabor water pump. Therefore, this water is not recommended for consumption because it can lead to intestine illnesses.
Regarding TDS (Figure 11), the best drinkable water is the one marked in purple, source four—the Colonie neighborhood, which has the lowest values—between 258 and 301.
Another conclusion that can be drawn is that none of the water sources belong to the category of excellent drinkable water, with a TDS value between 50 and 150 ppm. However, four of the five water sources have acceptable values, situated between 258 and 335 ppm.
From the collected data, it can be observed (Figure 12) that the turbidity of all sources is quite linear with values close to each other.
The application and the measurement results have been publicized to the population of the rural settlement by means of direct discussions and leaflets. Specifically, the results from source five (Tabor) had the most important impact, as the TDS concentration proves that the water from this source is not recommended for consumption. A further campaign is planned to take place by contacting the local administration and presenting the application. Our approach is that the application will be advertised by the local administration in the local newspaper which is read by all the people from this rural area.

7. Conclusions

Water quality has been proven as a key factor for maintaining the populace’s health; therefore, different systems have been proposed in order to monitor and assure the quality of water. This paper addresses the necessity of monitoring water in the rural areas of Romania. Therefore, we propose a low-cost internet-of-things proto-type which can be used to detect different parameters from drinkable water. Our results demonstrate that our system can be expanded to other rural areas that might need water monitoring. It also shows which of the water sources from our experiments can be used for public consumption and which should be avoided. In our experiments, all the water sources are drinkable, with a single exception where the TDS values are not within proper limits, as they outperform the maximum accepted value of 500 ppm.
In future work, we plan to involve the local council of the rural area in promoting the benefits of the system, as well as the results. In the case of the water sources which are not drinkable, this should be announced to the population as fast as possible via different channels.
From the technical point of view, we plan to extend the number of sensors with another spectrum—specifically one which can measure different chemical compounds—as well as a method of data analysis based on several machine-learning approaches.

Author Contributions

Conceptualization, C.P. and R.B.; methodology, C.P. and R.B.; software, C.P.; validation, C.P. and S.N.; investigation, C.P. and R.B.; resources, M.C.-V. and D.B.; writing—original draft preparation, R.B., S.N., D.B. and M.C.-V.; writing—review and editing, R.B., S.N. and M.C.-V.; visualization, C.P. and M.C.-V.; supervision, R.B.; project administration, R.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data sharing not applicable.

Acknowledgments

This paper was partially supported by a grant from the Ministry of Research, Innovation, and Digitization, CNCS/CCCDI—UEFISCDI, project number ERANET-CHIST-ERA-ECOMOME, within PNCDI III.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. World Health Organization. Guidelines for Drinking Water Quality, Recommendations; WHO Library Cataloguing-in-Publication Data: Geneva, Switzerland, 2017; Volume 1.
  2. Almaviva, S.; Artuso, F.; Giardina, I.; Lai, A.; Pasquo, A. Fast Detection of Different Water Contaminants by Raman Spectroscopy and Surface-Enhanced Raman Spectroscopy. Sensors 2022, 22, 8338. [Google Scholar] [CrossRef] [PubMed]
  3. Lin, L.; Yang, H.; Xu, X. Effects of Water Pollution on Human Health and Disease Heterogeneity: A Review. Front. Environ. Sci. 2022, 10, 880246. [Google Scholar] [CrossRef]
  4. Alvizuri-Tintaya, P.A.; Villena-Martínez, E.M.; Avendaño-Acosta, N.; Lo-Iacono-Ferreira, V.G.; Torregrosa-López, J.I.; Lora-García, J. Contamination of Water Supply Sources by Heavy Metals: The Price of Development in Bolivia, a Latin American Reality. Water 2022, 14, 3470. [Google Scholar] [CrossRef]
  5. Lazar, L.; Rodino, S.; Pop, R.; Tiller, R.; D’Haese, N.; Viaene, P.; De Kok, J.-L. Sustainable Development Scenarios in the Danube Delta—A Pilot Methodology for Decision Makers. Water 2022, 14, 3484. [Google Scholar] [CrossRef]
  6. Bashir, I.; Lone, F.A.; Bhat, R.A.; Mir, S.A.; Dar, Z.A.; Dar, S.A. Concerns and Threats of Contamination on Aquatic Ecosystems. In Bioremediation and Biotechnology; Springer: Cham, Switzerland, 2020; Volume 27, pp. 1–26. [Google Scholar]
  7. FAO (Food and Agriculture Organization of the United Nations). The State of the World’s Land and Water Resources: Managing Systems at Risk; Food and Agriculture Organization of the United Nations: Rome, Italy, 2011.
  8. Singh, R.; Baz, M.; Gehlot, A.; Rashid, M.; Khurana, M.; Akram, S.V.; Alshamrani, S.S.; AlGhamdi, A.S. Water Quality Monitoring and Management of Building Water Tank Using Industrial Internet of Things. Sustainability 2021, 13, 8452. [Google Scholar] [CrossRef]
  9. Dunca, A. Water Pollution and Water Quality Assessment of Major Transboundary Rivers from Banat (Romania). J. Chem. 2018, 2018, 9073763. [Google Scholar] [CrossRef] [Green Version]
  10. Breaban, I.G.; Breaban, A.I. Causes and Effects of Water Pollution in Romania. In Water Resources Management in Romania, 1st ed.; Negm, A., Romanescu, G., Zeleňáková, G., Eds.; Springer: Cham, Switzerland, 2020. [Google Scholar]
  11. WHO. pH in Drinking-Water. In WHO Guidelines for Drinking-Water Quality; WHO: Geneva, Switzerland, 2007. [Google Scholar]
  12. WHO. Total Dissolved Solids in Drinking-Water. In WHO Guidelines for Drinking-Water Quality; WHO: Geneva, Switzerland, 2003. [Google Scholar]
  13. Hafeez, S.; Wong, M.S.; Ho, H.C.; Nazeer, M.; Nichol, J.; Abbas, S.; Tang, D.; Lee, K.H.; Pun, L. Comparison of Machine Learning Algorithms for Retrieval of Water Quality Indicators in Case-II Waters: A Case Study of Hong Kong. Remote Sens. 2019, 11, 617. [Google Scholar] [CrossRef] [Green Version]
  14. Zompanti, A.; Grasso, S.; Sabatini, A.; Vollero, L.; Pennazza, G.; Santonico, M. A Multi-Sensor System for Sea Water Iodide Monitoring and Seafood Quality Assurance: Proof-of-Concept Study. Sensors 2021, 21, 4464. [Google Scholar] [CrossRef]
  15. Lu, Q.; Si, W.; Wei, L.; Li, Z.; Xia, Z.; Ye, S.; Xia, Y. Retrieval of Water Quality from UAV-Borne Hyperspectral Imagery: A Comparative Study of Machine Learning Algorithms. Remote Sens. 2021, 13, 3928. [Google Scholar] [CrossRef]
  16. Liu, H.; Yu, T.; Hu, B.; Hou, X.; Zhang, Z.; Liu, X.; Liu, J.; Wang, X.; Zhong, J.; Tan, Z.; et al. UAV-Borne Hyperspectral Imaging Remote Sensing System Based on Acousto-Optic Tunable Filter for Water Quality Monitoring. Remote Sens. 2021, 13, 4069. [Google Scholar] [CrossRef]
  17. Chang, H.-C.; Hsu, Y.-L.; Hung, S.-S.; Ou, G.-R.; Wu, J.-R.; Hsu, C. Autonomous Water Quality Monitoring and Water Surface Cleaning for Unmanned Surface Vehicle. Sensors 2021, 21, 1102. [Google Scholar] [CrossRef] [PubMed]
  18. Tang, W.; Biglari, A.; Ebarb, R.; Pickett, T.; Smallidge, S.; Ward, M. A Smart Sensing System of Water Quality and Intake Monitoring for Livestock and Wild Animals. Sensors 2021, 8, 2885. [Google Scholar] [CrossRef] [PubMed]
  19. Behjati, M.; Mohd Noh, A.B.; Alobaidy, H.A.H.; Zulkifley, M.A.; Nordin, R.; Abdullah, N.F. LoRa Communications as an Enabler for Internet of Drones towards Large-Scale Livestock Monitoring in Rural Farms. Sensors 2021, 21, 5044. [Google Scholar] [CrossRef] [PubMed]
  20. Frau, I.; Wylie, S.; Byrne, P.; Onnis, P.; Cullen, J.; Mason, A.; Korostynska, O. Microwave Sensors for In Situ Monitoring of Trace Metals in Polluted Water. Sensors 2021, 21, 3147. [Google Scholar] [CrossRef] [PubMed]
  21. Abdulsattar, R.K.; Elwi, T.A.; Abdul Hassain, Z.A. A New Microwave Sensor Based on the Moore Fractal Structure to Detect Water Content in Crude Oil. Sensors 2021, 21, 7143. [Google Scholar] [CrossRef] [PubMed]
  22. Zeng, R.; Mannaerts, C.M.; Shang, Z. A Low-Cost Digital Colorimetry Setup to Investigate the Relationship between Water Color and Its Chemical Composition. Sensors 2021, 21, 6699. [Google Scholar] [CrossRef]
  23. Shadrin, D.; Nikitin, A.; Tregubova, P.; Terekhova, V.; Jana, R.; Matveev, S.; Pukalchik, M. An Automated Approach to Groundwater Quality Monitoring—Geospatial Mapping Based on Combined Application of Gaussian Process Regression and Bayesian Information Criterion. Water 2021, 13, 400. [Google Scholar] [CrossRef]
  24. De Jesus, K.L.M.; Senoro, D.B.; Dela Cruz, J.C.; Chan, E.B. A Hybrid Neural Network–Particle Swarm Optimization Informed Spatial Interpolation Technique for Groundwater Quality Mapping in a Small Island Province of the Philippines. Toxics 2021, 9, 273. [Google Scholar] [CrossRef]
  25. Hussein, E.A.; Thron, C.; Ghaziasgar, M.; Bagula, A.; Vaccari, M. Groundwater Prediction Using Machine-Learning Tools. Algorithms 2020, 13, 300. [Google Scholar] [CrossRef]
  26. Paepae, T.; Bokoro, P.N.; Kyamakya, K. From Fully Physical to Virtual Sensing for Water Quality Assessment: A Comprehensive Review of the Relevant State-of-the-Art. Sensors 2021, 21, 6971. [Google Scholar] [CrossRef]
  27. Mosavi, A.; Hosseini, F.S.; Choubin, B.; Abdolshahnejad, M.; Gharechaee, H.; Lahijanzadeh, A.; Dineva, A.A. Susceptibility Prediction of Groundwater Hardness Using Ensemble Machine Learning Models. Water 2020, 12, 2770. [Google Scholar] [CrossRef]
  28. Ferencz, B.; Dawidek, J. Assessment of Spatial and Vertical Variability of Water Quality: Case Study of a Polymictic Polish Lake. Int. J. Environ. Res. Public Health 2021, 18, 8620. [Google Scholar] [CrossRef] [PubMed]
  29. El Ouali, A.; El Hafyani, M.; Roubil, A.; Lahrach, A.; Essahlaoui, A.; Hamid, F.E.; Muzirafuti, A.; Paraforos, D.S.; Lanza, S.; Randazzo, G. Modeling and Spatiotemporal Mapping of Water Quality through Remote Sensing Techniques: A Case Study of the Hassan Addakhil Dam. Appl. Sci. 2021, 11, 9297. [Google Scholar] [CrossRef]
  30. Budiarti, R.P.N.; Tjahjono, A.; Hariadi, M.; Purnomo, M.H. Development of IoT for Automated Water Quality Monitoring System. In Proceedings of the 2019 International Conference on Computer Science, Information Technology, and Electrical Engineering (ICOMITEE), Jember, Indonesia, 16–17 October 2019; pp. 211–216. [Google Scholar]
  31. Zhao, L.; Hong, M.; Wang, X. Has Third-Party Monitoring Improved Water Pollution Data Quality? Evidence from National Surface Water Assessment Sections in China. Water 2021, 13, 2917. [Google Scholar] [CrossRef]
  32. Zhu, W.; Dai, Z.; Gu, H.; Zhu, X. Water Extraction Method Based on Multi-Texture Feature Fusion of Synthetic Aperture Radar Images. Sensors 2021, 21, 4945. [Google Scholar] [CrossRef]
  33. Naloufi, M.; Lucas, F.S.; Souihi, S.; Servais, P.; Janne, A.; Wanderley Matos De Abreu, T. Evaluating the Performance of Machine Learning Approaches to Predict the Microbial Quality of Surface Waters and to Optimize the Sampling Effort. Water 2021, 13, 2457. [Google Scholar] [CrossRef]
  34. Rodríguez, R.; Pastorini, M.; Etcheverry, L.; Chreties, C.; Fossati, M.; Castro, A.; Gorgoglione, A. Water-Quality Data Imputation with a High Percentage of Missing Values: A Machine Learning Approach. Sustainability 2021, 13, 6318. [Google Scholar] [CrossRef]
  35. Huangfu, K.; Li, J.; Zhang, X.; Zhang, J.; Cui, H.; Sun, Q. Remote Estimation of Water Quality Parameters of Medium- and Small-Sized Inland Rivers Using Sentinel-2 Imagery. Water 2020, 12, 3124. [Google Scholar] [CrossRef]
  36. Hong, W.J.; Shamsuddin, N.; Abas, E.; Apong, R.A.; Masri, Z.; Suhaimi, H.; Gödeke, S.H.; Noh, M.N.A. Water Quality Monitoring with Arduino Based Sensors. Environments 2021, 8, 6. [Google Scholar] [CrossRef]
  37. Osman, S.O.; Mohamed, M.Z.; Suliman, A.M.; Mohammed, A.A. Design and Implementation of a Low-Cost Real-Time In-Situ Drinking Water Quality Monitoring System Using Arduino. In Proceedings of the 2018 International Conference on Computer, Control, Electrical, and Electronics Engineering (ICCCEEE), Khartoum, Sudan, 12–14 August 2018; pp. 1–7. [Google Scholar]
  38. Feng, C.; Yuan, J.; Sun, Y.; You, J. Design of Water Quality Monitoring System. In Proceedings of the 2020 International Conference on Artificial Intelligence and Computer Engineering (ICAICE), Beijing, China, 23–25 October 2020; pp. 264–267. [Google Scholar]
  39. Taru, Y.K.; Karwankar, A. Water monitoring system using arduino with labview. In Proceedings of the 2017 International Conference on Computing Methodologies and Communication (ICCMC), Erode, India, 18–19 July 2017; pp. 416–419. [Google Scholar]
  40. Sowmya, C.; Naidu, C.D.; Somineni, R.P.; Reddy, D.R. Implementation of Wireless Sensor Network for Real Time Overhead Tank Water Quality Monitoring. In Proceedings of the 2017 IEEE 7th International Advance Computing Conference (IACC), Hyderabad, India, 5–7 January 2017; pp. 546–551. [Google Scholar]
  41. Almojela, I.F.; Gonzales, S.M.; Gutierrez, K.; Santos, A.; Malabanan, F.; Tabin, J.N.; Ezcarez, C. WatAr: An Arduino-based Drinking Water Quality Monitoring System using Wireless Sensor Network and GSM Module. In Proceedings of the 2020 IEEE REGION 10 CONFERENCE (TENCON), Osaka, Japan, 16–19 November 2020; pp. 550–555. [Google Scholar]
  42. Sabari, M.; Aswinth, P.; Karthik, T.; Kumar, B.C. Water Quality Monitoring System Based on IoT. In Proceedings of the 2020 5th International Conference on Devices, Circuits and Systems (ICDCS), Coimbatore, India, 5–6 March 2020; pp. 279–282. [Google Scholar]
  43. Abdulwahid, A.H. IoT Based Water Quality Monitoring System for Rural Areas. In Proceedings of the 2020 9th International Conference on Renewable Energy Research and Application (ICRERA), Glasgow, UK, 27–30 September 2020; pp. 279–282. [Google Scholar]
  44. Moparthi, N.R.; Mukesh, C.; Vidya Sagar, P. Water Quality Monitoring System Using IOT. In Proceedings of the 2018 Fourth International Conference on Advances in Electrical, Electronics, Information, Communication and Bio-Informatics (AEEICB), Chennai, India, 27–28 February 2018; pp. 1–5. [Google Scholar]
  45. Lakshmanan, L.; Jesudoss, A.; Sivasangari, A.; Maran, S.; Mercy Theresa, M. Analysis of the Water Quality Monitoring System. In Proceedings of the 2020 International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 28–30 July 2020; pp. 1032–1035. [Google Scholar]
  46. Alam, A.U.; Clyne, D.; Deen, M.J. A Low-Cost Multi-Parameter Water Quality Monitoring System. Sensors 2021, 21, 3775. [Google Scholar] [CrossRef]
  47. Ahmed, U.; Mumtaz, R.; Anwar, H.; Shah, A.A.; Irfan, R.; García-Nieto, J. Efficient Water Quality Prediction Using Supervised Machine Learning. Water 2019, 11, 2210. [Google Scholar] [CrossRef] [Green Version]
  48. Eldesouky, E.; Bekhit, M.; Fathalla, A.; Salah, A.; Ali, A. A Robust UWSN Handover Prediction System Using Ensemble Learning. Sensors 2021, 21, 5777. [Google Scholar] [CrossRef] [PubMed]
  49. Arias-Rodriguez, L.F.; Duan, Z.; Sepúlveda, R.; Martinez-Martinez, S.I.; Disse, M. Monitoring Water Quality of Valle de Bravo Reservoir, Mexico, Using Entire Lifespan of MERIS Data and Machine Learning Approaches. Remote Sens. 2020, 12, 1586. [Google Scholar] [CrossRef]
  50. Arias-Rodriguez, L.F.; Duan, Z.; Díaz-Torres, J.d.J.; Basilio Hazas, M.; Huang, J.; Kumar, B.U.; Tuo, Y.; Disse, M. Integration of Remote Sensing and Mexican Water Quality Monitoring System Using an Extreme Learning Machine. Sensors 2021, 21, 4118. [Google Scholar] [CrossRef]
  51. Pu, F.; Ding, C.; Chao, Z.; Yu, Y.; Xu, X. Water-Quality Classification of Inland Lakes Using Landsat8 Images by Convolutional Neural Networks. Remote Sens. 2019, 11, 1674. [Google Scholar] [CrossRef] [Green Version]
  52. Stajkowski, S.; Kumar, D.; Samui, P.; Bonakdari, H.; Gharabaghi, B. Genetic-Algorithm-Optimized Sequential Model for Water Temperature Prediction. Sustainability 2020, 12, 5374. [Google Scholar] [CrossRef]
  53. Post, C.; Brülisauer, S.; Waldschläger, K.; Hug, W.; Grüneis, L.; Heyden, N.; Schmor, S.; Förderer, A.; Reid, R.; Reid, M.; et al. Application of Laser-Induced, Deep UV Raman Spectroscopy and Artificial Intelligence in Real-Time Environmental Monitoring—Solutions and First Results. Sensors 2021, 21, 3911. [Google Scholar] [CrossRef]
  54. Goparaju, S.U.N.; Vaddhiparthy, S.S.S.; Pradeep, C.; Vattem, A.; Gangadharan, D. Design of an IoT System for Machine Learning Calibrated TDS Measurement in Smart Campus. In Proceedings of the 2021 IEEE 7th World Forum on Internet of Things (WF-IoT), New Orleans, LA, USA, 14 June–31 July 2021; pp. 877–882. [Google Scholar]
Figure 1. Research methodology.
Figure 1. Research methodology.
Sensors 23 03919 g001
Figure 2. System architecture of the water status project.
Figure 2. System architecture of the water status project.
Sensors 23 03919 g002
Figure 3. The hardware architecture of the water status project.
Figure 3. The hardware architecture of the water status project.
Sensors 23 03919 g003
Figure 4. Setup of the Arduino-based sensor system.
Figure 4. Setup of the Arduino-based sensor system.
Sensors 23 03919 g004
Figure 5. Software architecture of the water status mobile application.
Figure 5. Software architecture of the water status mobile application.
Sensors 23 03919 g005
Figure 6. (a) Class diagram of main activity of the mobile application; (b) class diagram of the second activity of the water status app.
Figure 6. (a) Class diagram of main activity of the mobile application; (b) class diagram of the second activity of the water status app.
Sensors 23 03919 g006
Figure 7. Graphical user interfaces for: (a) the main activity; (b) a certain water source; (c) finding the water sources in the locality; (d) issue reporting; (e) water-source retest activity.
Figure 7. Graphical user interfaces for: (a) the main activity; (b) a certain water source; (c) finding the water sources in the locality; (d) issue reporting; (e) water-source retest activity.
Sensors 23 03919 g007aSensors 23 03919 g007b
Figure 8. Operations performed in the: (a) readData() function and (b) updateData() function.
Figure 8. Operations performed in the: (a) readData() function and (b) updateData() function.
Sensors 23 03919 g008
Figure 9. Diagram for the software implemented on the Arduino board.
Figure 9. Diagram for the software implemented on the Arduino board.
Sensors 23 03919 g009
Figure 10. pH variation for the tested water sources.
Figure 10. pH variation for the tested water sources.
Sensors 23 03919 g010
Figure 11. TDS variation for the tested water sources.
Figure 11. TDS variation for the tested water sources.
Sensors 23 03919 g011
Figure 12. Turbidity variation for the tested water sources.
Figure 12. Turbidity variation for the tested water sources.
Sensors 23 03919 g012
Table 1. Findings of previous studies compared to the current approach.
Table 1. Findings of previous studies compared to the current approach.
ReferenceDescriptionAddressed PointsCurrent Approach
[24]The implementation of various spatial interpolation methods results in significant variations from the true spatial distribution of water quality in a specific location. This research improves the mapping prediction capabilities of spatial interpolation algorithmsGroundwater-quality mapping using a neural network approachWater-quality monitoring system based on specific measured parameters
[26]The feasibility of virtual sensing for water-quality assessment is reviewed. The review focuses on the overview of key water-quality parameters for a particular use case and the development of the corresponding cost estimates for their monitoringMultiple solutions are analyzed in terms of modeling approaches and various parametersThe water-quality monitoring system is based on low-cost components
[30]Web scrapping and Python scripts are used for analysis, aggregation, and filtering of data from the sensorsAn integrated system based on internet-of-things for measuring the water quality; MQTT protocol communication; MariaDB databases; sensors’ data graph plottingFirebase databases used for the development of the water status app
[34]Several statistical and machine-learning models are used for imputing water-quality data at six monitoring stationsWater-quality data analysis using a machine learning approachWater-quality monitoring system based on specific measured parameters. The machine learning approach is part of future work
[35]This study tries to improve the image spatial resolution and to weaken the interference of mixed pixels in the image. The study is focused on the water-quality monitoring of medium- and small-sized inland riversRemote estimation of water-quality parameters using Sentinel-2 imageryThe measured parameters: pH, turbidity, TDS
[41]Arduino-based monitoring system that measures four physicochemical parameters of water: pH, temperature, turbidity, and electrical conductivity in order to identify possible water contaminationWatAr: an Arduino-based drinking water-quality monitoring system using a wireless sensor network and GSM moduleThe communication used in our approach is based on Bluetooth module BT04
[43]Affordable system to control water quality in real time, based on several sensors, which measure various chemical and physical water properties, such as conductivity, pH, turbidity, and temperature.Real-time water-quality monitoring using various sensorsThe measured parameters: pH, turbidity, TDS
[8]An IoT-based architecture is proposed and implemented for monitoring the level and quality of water in a domestic water tank with customized hardware based on 2.4 GHz radiofrequency (RF) communicationReal-time experimental setup for water-quality monitoringThe communication used in our approach is based on Bluetooth module BT04 and a Firebase database
[46]A multi-parameter water-quality monitoring system (MWQMS) is proposed that includes an array of low-cost, easy-to-use, high-sensitivity electrochemical sensors, as well as custom-designed sensor readout circuitry and a smartphone application with wireless connectivitySimultaneous monitoring of pH, free chlorine, and temperature with high levels of sensitivityThe measured parameters: pH, turbidity, TDS
Table 2. Components prices for a low-cost system approach.
Table 2. Components prices for a low-cost system approach.
ComponentsPrice (in Euro)
Arduino UNO r339
Bluetooth module BT041.4
Temperature sensor DS18B202.4
pH Sensor—SEN016144.4
TDS Sensor—SEN024417
Turbidity Sensor—SKU SEN018916
Total120.2
Table 3. Water source one and two results.
Table 3. Water source one and two results.
DateSource 1—SchoolSource 2—Center
Temperature
(Grade)
pHTurbidity
(V)
TDS
(PPM)
Temperature
(Grade)
pHTurbidity
(V)
TDS
(PPM)
27 October 202221.377.554.5130020.877.544.50261
29 October 202222.007.424.0133822.067.433.24309
1 November 202222.947.273.8930523.007.433.56335
12 November 202228.007.173.5329127.377.163.53271
13 November 202222.697.333.5831322.507.263.59285
14 November 202221.197.283.5730821.317.273.61282
26 November 202223.567.473.4831523.877.413.54301
27 November 202222.947.403.5930822.817.403.62284
28 November 202224.567.413.6029324.817.293.56274
4 December 202223.377.533.6329523.377.513.58281
5 December 202223.127.543.5932523.197.503.51316
6 December 202223.007.723.5431222.947.573.49310
Average:23.227.423.72305.523.177.393.61292.4
Minim:21.197.173.4829120.877.163.24261
Maxim:28.007.724.5133827.377.574.50335
Table 4. Water sources three and four results.
Table 4. Water sources three and four results.
DateSource 3—Gataia StreetSource 4—Colonie Neighborhood
Temperature
(Grade)
pHTurbidity
(V)
TDS
(PPM)
Temperature
(Grade)
pHTurbidity
(V)
TDS
(PPM)
27 October 202220.757.552.4130020.877.544.50260
29 October 202221.947.413.4333822.067.433.24294
1 November 202223.007.373.8330523.007.433.56296
12 November 202227.977.033.4029127.377.163.53258
13 November 202222.627.313.5831322.507.263.59294
14 November 202221.197.263.5930821.317.273.61266
26 November 202223.817.373.5231523.877.413.54301
27 November 202222.877.403.6030822.817.403.62270
28 November 202224.947.303.4829324.817.293.56273
4 December 202223.007.423.5129523.377.513.58275
5 December 202223.127.483.5432523.197.503.51296
6 December 202222.947.583.5731222.947.573.49290
Average:23.177.373.45308.523.177.393.61281
Minim:20.757.032.4129120.877.163.24258
Maxim:27.977.583.8333827.377.574.50301
Table 5. Water source five results.
Table 5. Water source five results.
DateSource 5—Tabor
Temperature
(Grade)
pHTurbidity
(V)
TDS
(PPM)
27 October 202221.877.514.66753
29 October 202222.197.444.01645
1 November 202223.317.433.86570
12 November 202227.877.033.46461
13 November 202222.567.383.59539
14 November 202221.317.263.59460
26 November 202223.947.303.66526
27 November 202223.127.413.66492
28 November 202224.817.343.52476
4 December 202223.257.303.63490
5 December 202223.447.483.54530
6 December 202223.067.573.50537
Average:23.397.373.72539.9
Minim:21.317.033.46460
Maxim:27.877.574.66753
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Bogdan, R.; Paliuc, C.; Crisan-Vida, M.; Nimara, S.; Barmayoun, D. Low-Cost Internet-of-Things Water-Quality Monitoring System for Rural Areas. Sensors 2023, 23, 3919. https://doi.org/10.3390/s23083919

AMA Style

Bogdan R, Paliuc C, Crisan-Vida M, Nimara S, Barmayoun D. Low-Cost Internet-of-Things Water-Quality Monitoring System for Rural Areas. Sensors. 2023; 23(8):3919. https://doi.org/10.3390/s23083919

Chicago/Turabian Style

Bogdan, Razvan, Camelia Paliuc, Mihaela Crisan-Vida, Sergiu Nimara, and Darius Barmayoun. 2023. "Low-Cost Internet-of-Things Water-Quality Monitoring System for Rural Areas" Sensors 23, no. 8: 3919. https://doi.org/10.3390/s23083919

APA Style

Bogdan, R., Paliuc, C., Crisan-Vida, M., Nimara, S., & Barmayoun, D. (2023). Low-Cost Internet-of-Things Water-Quality Monitoring System for Rural Areas. Sensors, 23(8), 3919. https://doi.org/10.3390/s23083919

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop