Design and assembly of a domestic water temperature, pH and turbidity monitoring system – BMC Research Notes

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.

Fig. 1figure 1

Block diagram of the domestic water temperature, pH and turbidity monitoring system

Full size image

The Arduino Uno used in this system is a microcontroller board based on ATmega 328P [17]. 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 [19]. 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 [19]. The gravity analog pH sensor have a range of 0 to 14, which is measured between 0 to 60 °C [20]. The turbidity sensor detects suspended particles in water by measuring light transmittance and scattering rate which changes with the amount of total suspended solids [21]. 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 [11]. 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 [22].

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.

Fig. 2figure 2

Connection of NodeMCU to ThingSpeak

Full size image

Fig. 3figure 3

ThingSpeak pH chart

Full size image

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. [23] who designed a low-cost nephelometric turbidity sensor for continual domestic water quality monitoring system. In another study [24], 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 [25] 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.