Heliyon: Sathish Pasika, Sai Teja Gandla
Heliyon: Sathish Pasika, Sai Teja Gandla
Heliyon: Sathish Pasika, Sai Teja Gandla
Heliyon
journal homepage: www.cell.com/heliyon
Research article
A R T I C L E I N F O A B S T R A C T
Keywords: Wireless communication developments are creating new sensor capabilities. The current developments in the field
Electrical engineering of sensor networks are critical for environmental applications. Internet of Things (IoT) allows connections among
Environmental science various devices with the ability to exchange and gather data. IoT also extends its capability to environmental
Systems engineering
issues in addition to automation industry by using industry 4.0. As water is one of the basic needs of human
Control systems
Wireless network
survival, it is required to incorporate some mechanism to monitor water quality time to time. Around 40% of
Communication system deaths are caused due to contaminated water in the world. Hence, there is a necessity to ensure supply of purified
Water treatment drinking water for the people both in cities and villages. Water Quality Monitoring (WQM) is a cost-effective and
WQM efficient system designed to monitor drinking water quality which makes use of Internet of Things (IoT) tech-
Temperature nology. In this paper, the proposed system consists of several sensors to measure various parameters such as pH
Wireless communication value, the turbidity in the water, level of water in the tank, temperature and humidity of the surrounding at-
Turbidity mosphere. And also, the Microcontroller Unit (MCU) interfaced with these sensors and further processing is
Humidity
performed at Personal Computer (PC). The obtained data is sent to the cloud by using IoT based ThinkSpeak
pH
application to monitor the quality of the water.
MCU.
IoT
1. Introduction of a microcontroller and basic sensors, is compact and is very useful for
pH, turbidity, water level detection, temperature and humidity of the
Freshwater is a world resource that is a gift of nature and important to atmosphere, continuous and real-time data sending via wireless tech-
farming, manufacturing, and the life of human beings on earth. nology to the monitoring station (Sugapriyaa et al., 2018) (Barabde &
Currently, drinking water facilities face new real-world problems (Shafi Danve., 2015).
et al., 2018) (Siregar et al., 2017). Due to the limited drinking water
resources, intensive money requirements, growing population, urban 2. Literature survey
change in rural areas, and the excessive use of sea resources for salt
extraction has significantly worsened the water quality available to Lambrou et al. (2014) discussed the development and implementa-
people (Chen & Han, 2018) (Meng et al., 2017). The high use of chem- tion of a portable, mobile, cost-efficient and reliable water level control
icals in manufacturing, construction and other industries, fertilizers in system. Here the authors used two transceivers of radio frequency (RF)
farms and also directly leaving the polluted water from industries into and a transmitter mounted on the tank and sump at the place where they
nearby water bodies have made a huge contribution to the global water wanted to check the quality of water. The RF transceivers used for
quality reduction, which has become an important problem (Cloete et al., wireless communication to the internet server. With the help of a mi-
2014). Even due to containment water various water born are increasing crocontroller, the system is fully programmed of the user unless the water
day by day, due to which many human beings are losing their lives. the bottle is drained or overflowed. The sensor array is used to measure
Traditionally, detection of water quality was manually performed various parameters such as dissolved Oxygen, Tumble, pH, Temperature,
where water samples were obtained and sent for examination to the etc. Sensor array. Costs of installation are reduced because of the wireless
laboratories which is time taking process, cost and human resources (Das system.
& Jain, 2017) (He & Zhang., 2012). Such techniques do not provide data Prasad et al. (2015) the smart Water Quality Monitoring (WQM)
in real-time. The proposed water quality monitoring system is consisting device for Fiji using IoT and remote sensing technologies is shown in this
* Corresponding author.
E-mail addresses: satish35ece@gmail.com, psathish_ece@cbit.ac.in (S. Pasika).
https://doi.org/10.1016/j.heliyon.2020.e04096
Received 27 May 2019; Received in revised form 21 September 2019; Accepted 26 May 2020
2405-8440/© 2020 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-
nc-nd/4.0/).
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
article. The Pacific Islands of Fiji require regular collection and analysis
of collected data for the water quality monitoring and uploading this data
into the server. In order to monitor water quality, the authors have used
IoT and remote sensing technologies. The current measurements can be
enhanced by remote sensing. During the entire test period, the system has
been proved worth by delivering accurate and consistent data using IoT
for water monitoring in real-time. The system proposed by these authors
also used a GSM module to forward the data to the mobile user via SMS.
Omar Faruq et al. (2017) A water quality monitoring system based on
microcontrollers for people living in Bangladesh's outskirts, where safe
drinking water is not available, is provided in this paper. The device has
been designed with a high degree of accuracy and is sensitive to several
water parameters such as temperature, turbidity and hydrogen potential.
(pH) displayed on the LCD monitor. Finally, in this paper, each of the
parameter values is compared with the predefined equipment, and sensor
values and error are calculated.
Figure 1. System block diagram. Figure 3. Algorithm for pH sensor data processing.
2
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
Figure 6. pH output in ThingSpeak Server with field 1 voltage vs. Time and
field 2 pH vs. Time.
4.1.2. NodeMCU
It's an IoT platform open-source. It consists of the Espressif System's
ESP8266 Wi-Fi Chip (SoC) on-chip and ESP-12 modulus-based hardware.
With Wi-Fi, analog pins, digital pins and serial communication Protocols,
the NodeMCU Development Board has been featured. The board is used
for wireless communication since this technology has evolved to such a
level that largenetworks of low-cost devices are used to track infra-
Figure 5. Hardware setup of WQM system. structure in real-time (Whittle et al., 2013).
3
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
4.2. Sensors
The various sensors used in this work are explained in the following
section.
4.2.1. pH sensor
The pH of the ion of the hydrogen is the negative measure. The
calculation is an acidity balancing test or the alkaline content of the ions
of hydrogen in the water (Cloete et al., 2014). The source of pH natural
for water is about 7; pH ranges from 6.5 to 9.5 which can be considered
safe water for drinking (Bande & Nandedkar, 2016). The source of pH is
low (0) for acidic and high (14) for alkaline solutions. For each increase
in several ph values, the concentration of hydrogen ion decreases
ten-fold, and water becomes less acidic. A pH sensor has an electrode of
Figure 8. Turbidity output in ThingSpeak Server with field 3 voltage vs. Time Figure 10. Ultrasonic Sensor output in ThingSpeak Server with field 5 distance
and field 4 Turbidity vs. Time. vs. Time.
4
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
5
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
between 1 C and 1% (Zin Myint et al., 2017). The sensor is used to calculated using Eq. (1). The DHT 11 Sensor reads the analog values of
determine the temperature of the atmosphere so that the pH and temperature and humidity. Later the same values are sent into the Thing
turbidity sensors are worked correctly over a long time. Temperature Speak server and the same values are updated in the Serial monitor.
measurement can also determine the kinds of marine organisms that can
survive in the water (Cloete et al., 2014). Distance ¼ (Duration) / 58.8 (1)
6
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
sample from Hyderabad Metropolitan water supply and sewerage board 6.2. Turbidity sensor results
and groundwater tested. The entire hardware setup of the WQM system is
shown in Figure 5. The turbidity values in NTU, as well as the voltage of water, are being
calculated and updated in the Server, as shown in Figure 8. It is observed
6.1. A. pH sensor results that the value of field 3 at time 21:08h is 4.0V and its corresponding
value of turbidity is 676 NTU as shown in field 4. As shown in Figure 8,
As shown in Figure 6, the two fields in the ThingSpeak Server are the server data is updated with the voltage of water and turbidity value of
updated with their corresponding values. The server is getting updated water in field 3 and field 4 respectively. According to Eq. (3), the
every 20 s. Infield 1 the voltage of water is being calculated from the Turbidity of water is inversely proportional to the voltage water.
sensor and being updated. Whereas in field 2 the pH value of water is
y ¼ -1120.4 x2 þ 5742.3x – 4352.9 (3)
being updated. According to the Nernst equation, as shown in Eq. (2), the
pH of water is directly proportional to the voltage water. In Eq. (3), y is the turbidity value and x is the voltage. The practical
E ¼ EO þ (RT/zF) pH (2) proof for the above Eq. (3) is verified by using field charts 3 and 4 the
relationship between turbidity of water and the voltage of water is
In Eq. (2), E is the cell potential in the conditions that prevail, Eo inversely proportional. The turbidity sensor output also monitored in the
is the cell potential in the standard temperature and pressure condi- serial monitor of Arduino IDE as shown in Figure 9.
tions, R is the universal gas constant, T is the temperature, z is the
number of electric moles that are transferred to the reaction, and F is 6.3. Ultrasonic sensor results
the constant Faraday. The voltage of water is linearly related to the
pH value of water by comparing the two graphs. is the practical proof The storage tank water level is measured in cm using the ultrasound
for Eq. (2). It is noticed that the voltage of water is 2.39V at 20:28h sensor and the water level is updated into the ThingSpeak Server as
and for that the corresponding pH value is 5.74pH. The output of the shown in Figure 10. The time at which 21:12h the water level is around
pH sensor also observed in the serial monitor of the Arduino IDE as 44cm in the tank. The water level of the tank is also monitored in the
shown in Figure 7. serial monitor of Arduino IDE as shown in Figure 11.
7
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
6.4. Temperature and humidity sensor results with a time delay of 20 s because to upload into the server a minimum of
15 s delay is needed.
Finally, the surrounding environment temperature and humidity
calculated from the DHT-11 sensor module and updating it into the 7. Conclusion
ThingSpeak Server as shown in Figure 12. In field 6 the temperature
value updates whereas in field 7 the humidity value of the atmosphere is The system proposed in this paper is an efficient, inexpensive IoT
being updated respectively. Temperature measured in degree C, and solution for real-time water quality monitoring. The developed system
humidity measured in percentage. The temperature of the surrounding having Arduino Mega and NodeMCU target boards are interfaced with
calculated because the pH sensor and turbidity sensor will give accurate several sensors successfully. An efficient algorithm is developed in real-
value in a specific atmospheric condition. In Figure 12, consider the time, to track water quality. The measured pH value ranges from 6.5 to
temperature value at the time instance of 20:26h is 34.2 0C and from 7.5 for Hyderabad Metropolitan city supply water and 7 to 8.5 for
field 7 at the same instance of time is 33%. The temperature and moisture groundwater. The measured value of turbidity ranges from 600 to 2000
of the environment are also monitored in the serial monitor of Arduino NTU for both Hyderabad Metropolitan city supply water and ground-
IDE as shown in Figure 13. water. A web-based application i.e., ThingSpeak is used to monitor the
parameters such as pH value, the turbidity of the water, level of water in
the tank, temperature and humidity of the surrounding atmosphere
6.5. ThingSpeak mobile application
through the webserver. Further, these measured parameters also moni-
tored in ThingSpeak mobile application. Also, this work needs to be
The usage of the ThingSpeak mobile application for monitoring the
carried out to analyse several other parameters like electrical conduc-
water quality will be very useful for the water quality commission au-
tivity, free residual chlorine, nitrates, and dissolved oxygen in the water.
thorities. After installation, the authorized users can access this infor-
mation can be accessed using a user identification ID and password to
Declarations
view ThingSpeak data in their account. app as shown in Figure 14 and
add the channels that need to be monitored. As shown in Figure 15, after
Author contribution statement
installation of the channels which are to be monitored need to add in the
app with its channel ID. After adding the channel ID, all the graphs will be
G. Sai Teja & P. Sathish: Conceived and designed the experiments;
displayed in the application.
Performed the experiments; Analyzed and interpreted the data; Wrote
The serial monitor of the Arduino IDE with the respective parameter
the paper.
values is updated as shown in Figure 16 where all the WQM system pa-
rameters are updated which is further uploaded in the ThingSpeak server
8
S. Pasika, S.T. Gandla Heliyon 6 (2020) e04096
Funding statement Lambrou, Theofanis P., Anastasiou, Christos C., Panayiotou, Christos G.,
Polycarpou, Marios M., 2014. A low-cost sensor network for real-time monitoring and
contamination detection in drinking water distribution systems. IEEE Sensor. J. 8,
This research did not receive any specific grant from funding agencies 2765–2772.
in the public, commercial, or not-for-profit sectors. Meng, F., Fu, G., Butler, D., 2017. Cost-effective river water quality management using
integrated real-time control technology. Environ. Sci. Technol. 51, 9876–9886.
Moparthi, Nageswara Rao, Mukesh, Ch, Vidya Sagar, P., 2018. Water quality monitoring
Competing interest statement system using IoT. 4th International Conference on Advances in Electrical, Electronics,
Information, Communication, and Bio-Informatics.
The authors declare no conflict of interest. Omar Faruq, Md., Hoque Emu, Injamamul, Nazmul Haque1, Md., Dey, Maitry, Das, N.K.,
Dey, Mrinmoy, 2017. Design and implementation of a cost-effective water quality
evaluation system. In: IEEE Region 10 Humanitarian Technology Conference, Dhaka,
Additional information Bangladesh, pp. 860–863.
Prasad, A.N., Mamun, K.A., Islam, F.R., Haqva, H., 2015. Smart water quality monitoring
system. In: The University of the South Pacific. 2nd Asia-Pacific World congress on
No additional information is available for this paper. Computer Science and Engineering IEEE Conference.
Shafi, Uferah, Mumtaz, Rafia, Anwar, Hirra, Mustafa Qamar, Ali, Khurshid, Hamza, 2018.
References Surface Water Pollution Detection Using the Internet of Things. School of Electrical
Engineering and Computer Science, National University of Science and Technology,
IEEE Conference, pp. 92–96.
Bande, Priyanka N., Nandedkar, S.J., 2016. Low-Cost sensor network for real-time water
Siddula, Sai Sreekar, Babu, Phaneendra, Jain, P.C., 2018. Water level monitoring and
quality measurement system. Int. J. Innovat. Res. Sci. Eng. Technol. 5, 20691–20696.
management of dams using IoT. In: IEEE, EE Department Shiv Nadar University.
Barabde, M.N., Danve, S.R., 2015. Continuous water quality monitoring system for Water
Siregar, Baihaqi, Menen, Krisna, Efendi, Syahril, Andayani, Ulfi, 2017. Monitoring quality
resources at remote places. IJIRCEE 3, 2320–9798.
standard of waste water using wireless sensor network technology for smart
Chen, Yiheng, Han, Dawei, 2018. Water quality monitoring in the smart city: a pilot
environment. In: The International Conference on ICT for Smart Society (ICISS).
project. Automat. Construct. J. 89, 307–316.
Srishaila Mallikarjuna Swamy, P.M., Mahalakshmi, G., 2017. Real-Time Monitoring of
Cloete, Niel Andre, Malekian, Reza, Nair, Lakshmi, 2014. Design of smart sensors for real-
Water quality using the smart sensor. JETER J. 4, 139–144.
time water quality monitoring. Department of electrical, Electronic and Computer
Sugapriyaa, Tha, Rakshaya, S., Ramyadevi, K., Ramya, M., Rashmi, P.G., 2018. Smart
Engineering, University of Pretoria, Pretoria, South Africa. IEEE J. 13, 1–16.
water quality monitoring system for real-time applications. Int. J. Pure Appl. Math.
Daigavane, Vaishnavi V., Gaikwad, M.A., 2017. Water quality monitoring system based
118, 1363–1369.
on IoT. Adv. Wireless Mobile Commun.. ISSN 10, 1107–1116.
Whittle, A.J., Allen, M., Preis, A., Iqbal, M., 2013. Sensor Networks for Monitoring and
Das, Brinda, Jain, P.C., 2017. Real-time water quality monitoring system using the
Control of Water Distribution Systems. Coventry University, Coventry, UK. MIT
internet of things. Int. Conf. Comput. Commun. 78–82.
article.
He, Donge, Zhang, Li-Xin, 2012. The water quality monitoring system based on wireless
Zin Myint, Cho, Gopal, Lenin, Lin Aun, Yan, 2017. Reconfigurable smart water quality
sensor network. In: Report: Mechanical and Electronic Information Institute, China
monitoring system in an IoT environment. IEEE ICIS 435–440.
University of GeoScience, Wu Hen, China.