Design and Development of A Low-Cost IoT Based Water Quality Monitoring System
Design and Development of A Low-Cost IoT Based Water Quality Monitoring System
Sultanus Salehin1 , Tahseen Asma Meem2 , Akib Jayed Islam3 , and Nasim Al Islam 4
1Islamic University of Technology, Gazipur, Bangladesh
2,3,4 American International University-Bangladesh (AIUB), Dhaka 1229, Bangladesh
1 [email protected], 2 [email protected]
3 [email protected], 4 [email protected]
1 Introduction
Atmosphere (air), lithosphere (rocks and soil), hydrosphere (water), and biosphere
(living aspects of the environment) are the four basic elements of the environment.
Water and oxygen are essential for life on Earth; in fact, biologists believe that water
is the source of life. Water and oxygen are essential for life on Earth; in fact, biolo-
gists believe that water is the source of life [1]. Fresh natural water is an essential
source of survival, and its consumption is fast growing as natural fresh water re-
sources such as rivers, lakes, and reservoirs become scarce. Improper water resource
management has resulted in severe water shortages in several parts of the world. Over
the last few decades, an exponential increase in population growth, urbanization, and
2
The rest of the paper is organized in the following sections: Section II summarizes
the project's related works, Section III describes the design procedure and hardware
implementation of the proposed system, Section IV shows the results and discussions,
Section V summarizes the project's future goals and conclusion.
3
2 Related Works
tem. In the paper “IoT Based Real-time River Water Quality Monitoring System” by
Mohammad Salah Uddin Chowdhury et al., depicted a WSN based water quality
monitoring system which enabled inter and intra node communication. Data visualiza-
tion is done on a server PC with the help of Spark streaming analysis through Spark
MLlib, Neural Network models and Belief Rule Based system. In the prospect of
Bangladesh, this work turned out to be very effective as it focused on high mobility,
high frequency and low power. However, the authors limited their work within river
water parameters (temperature, pH, turbidity) keeping other parameters still to ex-
plore i.e. chemical oxygen demand (COD), Dissolved oxygen (DO), Total dissolved
solid (TDS) etc [13].
In the paper “Industry 4.0 as a Part of Smart Cities”, Michal Lom, Ondrej Pribyl
and Miroslav Svitek described the synchronicity of Smart City and the concept of 4th
Industrial Revolution. The phrase "smart city" has been a recent development, par-
ticularly after 2008, when the nations were shaken by the economic crisis. The major
motivations for the establishment of the Smart City Initiative are to develop a sustain-
able approach for cities and to protect residents' quality of life. The smart city cannot
be seen solely as a technological discipline; numerous economic, humanitarian, and
regulatory factors must also be considered. The Internet of Things is a key component
of the Industry 4.0 idea and will be utilized to create "smart" devices. One of the im-
portant aspects of Industry 4.0 are Internet of Services (IoS), which includes smart
transport and logistics, smart health monitoring system and Internet of Energy. Indus-
try 4.0 may be regarded as a part of smart cities, and IoS, IoT, IoE, and IoP can be
seen as constituents that can connect the Smart City Initiative and Industry 4.0 [14].
Zhanwei Sun et al. investigated if an efficient energy management framework can
give a good QOI experience in IOT sensory settings. In contrast to previous efforts, it
is clear and interoperable with lower-level protocols in use, while maintaining long-
term energy efficiency without jeopardizing any achieved QOI values. Under the
constraint of service delay, an energy management solution is determined dynamical-
ly at runtime as the best option for long-term traffic data. Finally, to exemplify the
ideas and methods provided in this article, a comprehensive case study focused on
using sensor networks to perform water level monitoring is presented, along with a
simulation to demonstrate the performance of the proposed algorithms [15].
Traditional methods for measuring water quality, such as the time-consuming
manual laboratory examination process and statistical inferences [16], are time-
consuming, expensive, and inefficient. A number of technologies have been created
around the world to monitor and detect water contamination in real time. In actuality,
biological, chemical, and physical factors in nature influence water quality. The Wa-
ter Quality Index (WQI) was created to measure water quality because a single pa-
rameter cannot properly define it. WQI calculation has traditionally been a time-
consuming process, necessitating the development of a new method to streamline the
process. As a result, numerous systems were created, the majority of which focused
on detecting contamination events. Canary, one of the first such systems, was devel-
oped by Sandia National Laboratories and funded by the Environmental Protection
Agency (EPA). It is now deployed at Greater Cincinnati Water Works (GCWW) and
provides several open source components, the majority of which are online water
5
quality monitoring and contamination event detection. Multiple direct and surrogate
sensors are also used to relay continuous data to SCADA. It also offers an API that
allows users to change the default algorithms. It also supports REST web services,
allowing for XML input and output. It outperforms other systems in several key areas,
including algorithm transparency, the ability to directly integrate operational data into
its event detection component, and the ability to have centralized processing on a
single computing system while supporting multiple sensors. Another technology is
Elad Salomons' OptiEDS, which aids in the real-time observation of anomalous water
quality circumstances such as water quality monitoring and detection of water con-
tamination. Bluebox is another example of such a device that can detect aberrant be-
havior in water quality measurements. It generates a valid output even if some of the
parameters are missing since it first normalizes the data before calculating the dis-
tance between the parameters in each data point and plots the frequency curves of the
distances to show the result. It is, however, rather costly, costing up to $92,500, and it
lacks the capacity to directly incorporate operational data into event detection. The
Hach Company developed another system, Event Monitor, which includes a heuristic
ability to discover occurrences, mechanically tune itself, and define what constitutes
an irregularity within the system [17].
The need for a better methodology for Water Quality Monitoring System (WQMS)
has always been on the increase due to the challenge of the limitation of water re-
sources in a developing country like Bangladesh where the country’s ever-increasing
population, aging economy are mostly dependent on this source. In general, numerous
parameters must be measured in order to perform a water quality analysis. So, keep-
ing the focus on vital water parameters we proposed our WQMS model into two parts
- Hardware implementation & Software part. Proteus Professional 8.0 was used for
simulation purposes after which we proceeded for hardware implementation. The
block diagram and the Flow chart of the proposed WQM system are shown in the
Figure 1 & 2. All sensors including pH sensor, temperature sensor, turbidity sensor,
TDS sensor and water flow sensor are connected to the central MCU and these sen-
sors provides the MCU with the relevant data from the water resource. Through a Wi-
fi module the information is fed to the cloud in real time which can be monitored any
time from Android device or personal computer.
Arduino Nano is a microcontroller board that may be used on a breadboard which
contains 14 digital pins, 8 analog pins, 2 reset pins, and 6 power pins, according to the
pin configuration. The Arduino IDE is used to program it. This is basically a smaller
version of the Arduino UNO, and the two boards have nearly identical functionality.
It has a 5V operational voltage, however the input voltage can be anywhere between 7
and 12V. Because the Arduino Nano's maximum current rating is 40 mA, any load
connected to its pins should not drain more than 40 mA for optimal performance.
[18].
6
The microcontroller unit of the experimental set up having a sensor network is ca-
pable of capturing sample data from the water storage reservoir every 30 seconds. The
Arduino IDE serial display presents the sample parameter outputs. The Wi-fi module
is used for real time monitoring with different parameters. With the help of a pH sen-
sor, the voltage of the water is continuously being updated with corresponding values.
The pH level of the water is proportional to the measured voltage of the water accord-
ing to the Nernst equation,
𝐸 = 𝐸 𝑜 + (𝑅𝑇/𝑧𝐹) pH
In the above equation, cell potential is denoted by E while E^(o )is the potential of the
cell in the standard pressure and temperature condition, universal gas constant is de-
noted by R, z is the number of electric moles, F is the constant Faraday and T is the
temperature. The voltage measured by the sensor is linearly proportional to the pH
value of the relevant water type. Figure 5 and 6 show the output of the pH sensors as
9
seen in the serial monitor of the Arduino IDE. In figure 5 & 6, we observed 30 sam-
ples from 30 different resources at different time periods and the result of the pH lev-
els quite depicts the actual scenario apart from some exceptional occasions.
The corresponding values of Total Dissolved Solids (TDS) as well as Turbidity are
calculated using Gravity: TDS sensor and Turbidity sensor respectively. Figure 7 & 8
respectively give us the idea of TDS values & turbidity values of 30 unique resources
at different time period. The turbidity is measured in NTU: Nephelometric Turbidity
Units - the turbidity sensor outputs are also checked and updated in the Arduino IDE
serial monitor.
𝑦 = -1120.4𝑥 2 + 5742.3 𝑥 – 4352.9
Turbidity of the water is inversely proportional to the voltage of the water accord-
ing to the above equation where x is the value of the voltage and y represents turbidity
value.
10
The proposed technique for monitoring water parameters has yielded promising
preliminary findings. The turbidity level in drinking water that is deemed to be more
desirable and acceptable for consumption must be less than 1 NTU. Our suggested
model demonstrates that 13 samples of water from 30 distinct sources had turbidity
levels below 1 NTU, making them safe to consume. TDS levels below 300 PPM are
considered more desirable and acceptable for drinking without filtration. Our suggest-
ed model indicates that eight samples of water from the same source have TDS levels
below 300 PPM, making them safe to consume without filtration. The temperature of
drinking water that is acceptable for ingestion around the world must be less than 25
degrees Celsius. Our suggested approach reveals that 5 samples of water from 30
different resources have a temperature of less than 25 degrees Celsius and are safe to
consume. The pH level of drinking water recognized for consumption globally must
be between 6.5 and 8.5, but our suggested model demonstrates 21 samples of water
from 30 different resources with pH levels between 6.5 and 8.5 and can be considered
safe to drink. Despite the fact that the water monitoring system was developed to
collect samples from multiple water sources in Chittagong as well as Cox’s Bazar,
Bangladesh, the conclusion can be drawn that the system can be used for personal
usage as well. This proposed cutting edge IOT technology can be used to monitor the
water quality of any water source in any part of the planet in the future. In future, the
system can be made more robust and compact by complex PCB design [20-23] where
we can add an additional security system as well as a live data visualization system.
The inclusion of an Android [5,21-22] app can be a huge change in the entire WQM
system. Finally, it can be concluded that with this proposed paradigm, the goal of
ensuring safe drinking water for all can be achieved.
13
References
1. Hasan, Md Khalid, Abrar Shahriar, and Kudrat Ullah Jim. "Water pollution in Bangladesh
and its impact on public health." Heliyon 5, no. 8 (2019): e02145.
2. Uddin, Md Jamal, and Yeon-Koo Jeong. "Urban river pollution in Bangladesh during last
40 years: potential public health and ecological risk, present policy, and future prospects
toward smart water management." Heliyon 7, no. 2 (2021): e06107.
3. WHO, 2017a, July. Drinking-water Fact Sheets. Retrieved from World Health Organiza-
tion: http://www.who.int/mediacentre/factsheets/fs391/en/, last accessed 2021/09/21.
4. Daigavane, Vaishnavi V., and M. A. Gaikwad. "Water quality monitoring system based on
IoT." Advances in wireless and mobile communications 10, no. 5 (2017): 1107-1116.
5. Islam, Akib Jayed, Md Mehedi Farhad, Sadman Shahriar Alam, Swarup Chakraborty, Md
Mahmudul Hasan, and Md Siddat Bin Nesar. "Design, Development and Performance
Analysis of a Low-Cost Health-Care Monitoring System using an Android Application."
In 2018 International Conference on Innovations in Science, Engineering and Technology
(ICISET), pp. 401-406. IEEE, 2018.
6. Islam, Akib Jayed, Mohammed Kaiser Hamid, Sadman Shahriar Alam, Md Mahmudul
Hasan, Md Azizul Hoque, and Mohammad Nokib Monsur Rafid. "A Greener Approach to
Harvest Energy using Piezo-Speed Breaker." In 2019 International Conference on Electri-
cal, Computer and Communication Engineering (ECCE), pp. 1-4. IEEE, 2019.
7. Alam, S. S., Islam, A. J., Hasan, M. M., Rafid, M. N. M., Chakma, N., & Imtiaz, M. N.
(2018, September). Design and development of a low-cost IoT based environmental pollu-
tion monitoring system. In 2018 4th international conference on electrical engineering and
information & communication technology (iCEEiCT) (pp. 652-656). IEEE.
8. Lambrou, Theofanis P., Christos C. Anastasiou, Christos G. Panayiotou, and Marios M.
Polycarpou. "A low-cost sensor network for real-time monitoring and contamination detec-
tion in drinking water distribution systems." IEEE sensors journal 14, no. 8 (2014): 2765-
2772.
9. Saravanan, Krishnann, Elraj Anusuya, Raghvendra Kumar, and Le Hoang Son. "Real-time
water quality monitoring using Internet of Things in SCADA." Environmental monitoring
and assessment 190, no. 9 (2018): 1-16.
10. Vasudevan, Shriram K., and Balraj Baskaran. "An improved real-time water quality moni-
toring embedded system with IoT on unmanned surface vehicle." Ecological Informatics
65 (2021): 101421.
11. Pranata, Alif Akbar, Jae Min Lee, and Dong Seong Kim. "Towards an IoT-based water
quality monitoring system with brokerless pub/sub architecture." In 2017 IEEE Interna-
tional Symposium on Local and Metropolitan Area Networks (LANMAN), pp. 1-6. IEEE,
2017.
12. Cloete, Niel Andre, Reza Malekian, and Lakshmi Nair. "Design of smart sensors for real-
time water quality monitoring." IEEE access 4 (2016): 3975-3990.
13. Chowdury, Mohammad Salah Uddin, Talha Bin Emran, Subhasish Ghosh, Abhijit Pathak,
Mohd Manjur Alam, Nurul Absar, Karl Andersson, and Mohammad Shahadat Hossain.
"IoT based real-time river water quality monitoring system." Procedia Computer Science
155 (2019): 161-168.
14. Lom, Michal, Ondrej Pribyl, and Miroslav Svitek. "Industry 4.0 as a part of smart cities."
In 2016 Smart Cities Symposium Prague (SCSP), pp. 1-6. IEEE, 2016.
15. Sun, Zhanwei, Chi Harold Liu, Chatschik Bisdikia_, Joel W. Branch, and Bo Yang. "9th
Annual IEEE Communications Society Conference on Sensor." Mesh and Ad Hoc Com-
munications and Networks (2012).
14
16. Gazzaz, Nabeel M., Mohd Kamil Yusoff, Ahmad Zaharin Aris, Hafizan Juahir, and Mo-
hammad Firuz Ramli. "Artificial neural network modeling of the water quality index for
Kinta River (Malaysia) using water quality variables as predictors." Marine pollution bul-
letin 64, no. 11 (2012): 2409-2420.
17. Ahmed, Umair, Rafia Mumtaz, Hirra Anwar, Sadaf Mumtaz, and Ali Mustafa Qamar.
"Water quality monitoring: from conventional to emerging technologies." Water Supply
20, no. 1 (2020): 28-45.
18. [Online]. Available at: www.theengineeringprojects.com/2018/06/introduction-to-arduino-
nano.html last accessed 2021/09/21.
19. [Online]. Available at: www.techshopbd.com last accessed 2021/09/21.
20. Islam, Akib Jayed, Sadman Shahriar Alam, Khandoker Tanjim Ahammad, Fazllul Karim
Nadim, and Bithi Barua. "Design, kinematic and performance evaluation of a dual arm
bomb disposal robot." In 2017 3rd International Conference on Electrical Information and
Communication Technology (EICT), pp. 1-6. IEEE, 2017.
21. Alam, Sadman Shahriar, Akib Jayed Islam, Md Mahmudul Hasan, and Md Mehedi Farhad.
"Design and Implementation of an Embedded System to Observe the Atmospheric Condi-
tion using a Helium Balloon." In 2018 International Conference on Innovations in Science,
Engineering and Technology (ICISET), pp. 242-246. IEEE, 2018.
22. Alam, Sadman Shahriar, Akib Jayed Islam, Md Mahmudul Hasan, and Md Nafiz Imtiaz.
"A Low-Cost GPS based Application for Navigating Shallow Waters." In 2018 Interna-
tional Conference on Innovations in Science, Engineering and Technology (ICISET), pp.
92-97. IEEE, 2018.
23. Alam, Sadman Shahriar, Akib Jayed Islam, Md Mahmudul Hasan, and Fazllul Karim
Nadim. "Energy Harvesting from Dual Tone RF Signal using a Double Stage Voltage Rec-
tifier for Wireless Power Transmission." In 2019 5th International Conference on Advanc-
es in Electrical Engineering (ICAEE), pp. 757-762. IEEE, 2019.