environments
Article
Water Quality Monitoring with Arduino Based Sensors
Wong Jun Hong 1 , Norazanita Shamsuddin 1, * , Emeroylariffion Abas 1 , Rosyzie Anna Apong 2 , Zarifi Masri 2 ,
Hazwani Suhaimi 1 , Stefan Herwig Gödeke 2 and Muhammad Nafi Aqmal Noh 1
1
2
*
Faculty of Integrated Technologies, Universiti Brunei Darussalam, Jalan Tungku Link BE1410, Brunei;
[email protected] (W.J.H.);
[email protected] (E.A.);
[email protected] (H.S.);
[email protected] (M.N.A.N.)
Faculty of Science, Universiti Brunei Darussalam, Jalan Tungku Link BE1410, Brunei;
[email protected] (R.A.A.);
[email protected] (Z.M.);
[email protected] (S.H.G.)
Correspondence:
[email protected]
Abstract: Water is a quintessential element for the survival of mankind. Its variety of uses means
that it is always in a constant state of demand. The supply of water most primarily comes from large
reservoirs of water such as lakes, streams, and the ocean itself. As such, it is good practice to monitor
its quality to ensure it is fit for human consumption. Current water quality monitoring is often carried
out in traditional labs but is time consuming and prone to inaccuracies. Therefore, this paper aims
to investigate the feasibility of implementing an Arduino-based sensor system for water quality
monitoring. A simple prototype consisting of a microcontroller and multiple attached sensors was
employed to conduct weekly onsite tests at multiple daily intervals. It was found that the system
works reliably but is reliant on human assistance and prone to data inaccuracies. The system however,
provides a solid foundation for future expansion works of the same category to elevate the system to
being Internet of Things (IoT) friendly.
Citation: Hong, W.J.; Shamsuddin,
Keywords: arduino UNO R3 board; RELAND SUN pH sensor; DS18B20 temperature sensor; ReYeBu
turbidity sensor; OOTRTY brand total dissolved solids sensor
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.
https://doi.org/10.3390/
environments8010006
Received: 8 September 2020
Accepted: 2 November 2020
Published: 14 January 2021
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Copyright: © 2021 by the authors. Licensee MDPI, Basel, Switzerland.
This article is an open access article
distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://
creativecommons.org/licenses/by/
4.0/).
1. Introduction
The Internet of Things, otherwise known as IoT in the simplest sense, refers to the
concept of connecting physical devices, machines, software, and objects to the Internet [1].
In a broader sense, it is a dynamic and global network infrastructure, in which intelligent
objects and entities are used in conjunction with actuators, electronics, sensors, software
and connectivity to enhance connection, collection and data exchange [2]. This type of
network generally has a large number of nodes that interact with the environment and
exchange data, whilst reacting to events or triggering actions to exert control or change
upon the physical world. By sharing and acting on shared data contributed by individual
parts, an IoT system would be greater than the sum of its parts [3]. Each network node is
considered smart and consumes little resources such as data processing and data storage
power as well as energy consumption.
The term Internet of Things was initially coined in 1999 by Kevin Ashton, an expert in
digital innovation [4]. Since then, there has been a significant growth and development
in the IoT industry because IoT provides a platform that creates opportunities for people
to connect devices and control them with big data technology. Figure 1 below shows the
seven industries that are mainly affected by the growth of IoT over the period of late 2014
to early 2017, indicated by the weight which represents the occurrences of investment. The
industries affected are namely: Manufacturing, Agriculture, Public Service, Health, Electronics, Energy, and Mining [5]. IoT integration into manufacturing operations have been
repeatedly emphasized by governments using the term Industrial IoT (IIoT) to produce
fully intelligent, connected and autonomous manufacturing plants. Agriculture benefits
Environments 2021, 8, 6. https://doi.org/10.3390/environments8010006
https://www.mdpi.com/journal/environments
Environments 2021, 8, 6
2 of 15
from IoT’s real-time operation for optimizing productivity at reduced costs. A recent study
by Cipolla et al. (2019) shows that an IoT system can be used to monitor soil moisture
and electrical conductivity, as well as surface and groundwater electrical conductivity, to
optimize the management of both irrigation and drainage system [6]. Installation and monitoring of sensor devices in public services allowed for intelligent transportation system and
traffic management, optimal water and electricity management. A water flow driven sensor
network can be deployed without much expense and maintenance can be used to reduce
the time needed to detect leakage or contamination in urban water distribution systems [7].
Very low applied risks in IoT implementation in cities are the reason why the Public Service
industry is heavily influenced by IoT. Electronics are able to share information through
internet connections. Health service can provide better healthcare system and medical data
through qualitative analysis in diagnosis.
Figure 1. Trends of Industry Impacted by Internet of Things (IoT). Adapted from [5].
IoT is not limited to public uses only but can also be used privately. With a central
integrated IoT system, the home atmosphere can be adjusted by the pressing of a button,
be it temperature, air control, or ambient music. Furthermore, there is the option for smart
home security systems which can incorporate cameras, motion detectors, and locks, to
notify home owners immediately if the system suspects burglary or intrusion of property.
Household IoT systems are able to understand the user’s life habits and appropriately
evolve and adapt into a smart housekeeper through constant self-perception and selfchecking [4]. Having all of these features adds convenience, customization, security, and
ease of use to life at home [8].
Evidently, IoT minimizes human efforts in many life aspects whilst promoting efficient
resource utilization. It guarantees high speed, accurate quality data with secure processing
and better client or user experience [9]. These imply, amongst other advantages, the reliability and validity of data, performance, security and privacy. Table 1 shows that IoT
units are becoming increasingly popular for not just consumer use, but also business and
industries and are projected to rise at a steady rate for the coming years [10].
Lakes and streams are the planet’s most important freshwater system. According to
their immediate environments, they are ecosystems and natural life habitats and form part
of the food chain from vegetative material to animals to humankind. Rivers are complex
life support systems that operate on a thin line of sustainability [11]. In recent history,
the sharp increase in the human population has resulted in a considerable increase in the
need for freshwater worldwide. Coupled with other factors such as global warming and
Environments 2021, 8, 6
3 of 15
anthropogenic inputs (pollution from municipal and industrial wastewater discharge), it is
not unbelievable to say that the quality of water is now a major concern for experts around
the world. To comprehend the effort and investment needed to obtain fresh drinking water,
it is necessary to first understand the fundamental problems faced by freshwater systems.
Table 1. IoT units installed by categories (millions of units).
Category
2016
2017
2018
2019
Consumer
Business: Cross-Industry
Business: Vertical-Specific
Grand Total
3963.0
1102.1
1316.6
6381.8
5244.3
1501.0
1635.4
8380.6
7036.3
2132.6
2027.7
11196.6
12863.0
4381.4
3171.0
20415.4
The quality of surface water is largely affected by natural processes as well as manmade impacts, whereas surface water runoff is a seasonal phenomenon largely affected by
climate; anthropogenic discharges represent a constant polluting source to rivers and
streams. The Environmental Protection Agency (EPA) attributes Nonpoint Pollution
Sources (NPS) as the reason that America’s lakes, rivers and estuaries, in general, remain
polluted. Some of the NPS can be prevented, but much of it is a result of the combination
of rain, melting snow and irrigation systems [12]. All three of these events mean that water
picks up all types of debris and pollutants in its path to waterways. Water runoff from
parking lots, industries, farmlands, and suburb carries oil, gasoline, pesticides, sewage and
various other contaminants into water supplies, lakes, rivers and eventually the oceans.
Trash, plastic bottles and other refuse also are carried away by floods and rainstorms.
These pollutants can have a negative and devastating impact on vegetation and aquatic
ecosystems. Thus, activities that can generate NPS include, but are not limited to [13]:
1.
2.
3.
4.
5.
6.
7.
8.
Sediment washing from agriculture.
Deadly viruses and bacteria from animal grazing.
Construction works.
Aftermath of natural disasters particularly floods, tornadoes, hurricanes, and tsunamis.
Gasoline and oil from recreational boating.
Old and leaky septic systems.
Urban runoffs from homes and landfills.
Chemicals from household mismanagement and so on.
Climate and seasons have an effect on the baseflow of rivers and streams. Changing
trends in rainfall have contributed to water shortages and affected terrestrial habitats due to
variation in precipitation patterns and intensity [14]. Extreme rainfall may cause disasters such
as rainstorms, floods, and erosion, all of which have the ability to alter the natural ecosystem
of rivers, streams, and lakes. There is a clear relationship between precipitation and decreased
river water quality. The regression models used in reference [15] have demonstrated that
bacteria concentrations increase exponentially with observed precipitation. With heavy
rainfalls, it is expected that erosion loss in a freshwater ecosystem would be significant,
potentially causing an alteration to the depth of the river bed and to the river flow. Subjectively however, rainfall does not directly influence sediment discharge, but rather the
interplay between rainfall and land-use activities affecting sediment production [16].
What then defines a healthy river? According to [17], “a biological system can be
considered healthy when its inherent potential is realized, its condition is stable, its capacity
for self-repair when perturbed is preserved, and minimal external support for management
is needed”. Simply put, a river may be defined to be in good condition if its appearance
remains stable and is able to rectify any unnatural changes by itself. When conducting
water quality monitoring, there are many indicators to choose from. These may be from a
biological perspective such as observation of local aquatic life residing in the body of water,
or from a physical and chemical perspective such as soil erosion, stream flow, and sediment
Environments 2021, 8, 6
4 of 15
discharge [18]. For a small-scale river, measurement of a few important parameters can
suffice in giving a general idea to river health.
Currently only few studies exist which investigated ground or surface water in Brunei
Darussalam [19,20]. Results of studies and ongoing monitoring activities have highlighted
certain level of pollution in the Brunei River. Possible complex contamination scenarios
resulting from this may require a range of remediation and assessment measures [21].
However, natural occurring microbial processes are able to break down even recalcitrant
contaminants [22].The main sources of pollution have been traced to: effluent and sludge
from sewage treatment works within the catchment, sullage waste, solid waste, and
direct disposal of sewage from the water village and nearby settlements (50%), surface
water runoff from the capital’s central area (29%), and point and nonpoint pollutant
loads from various sub-catchment uses, including agricultural, residential and industrial
uses [23]. Under the Tenth National Development Plan, upgrades to existing monitoring
systems and quality management frameworks as well as installation of new drainage
and sewage systems have been proposed by the government [23]. However, this does
not take away the fact that Brunei does not have a method of active online water quality
monitoring. The current scheme of monitoring targets the source water where river water
is piped to a treatment plant and samples are collected via sampling tap in the treatment
plant’s laboratory. Water quality monitoring results can also be compiled in a database for
improved decision making [24]. Laboratory results take time to be processed and, even
then, the results might be inaccurate as certain parameters vary onsite and in-lab. Thus,
this study is undertaken to lay the foundation for making advancements in the field of
online water quality monitoring.
The main objectives of the study are to develop Internet of Things (IoT) systems, consisting of multiple sensors, communication link, storage and processing capabilities, energy
for powering the device, etc., in order to monitor water quality of rivers/streams and also to
identify the causes and factors contributing to water quality issues around the vicinity if any.
A testing site in Universiti Brunei Darussalam (UBD) has been chosen for the study where
the IoT system was placed and monitored directly. Due to financial constraints, the sensors
chosen will only focus on the most important parameters. The study took into account the
measurement of defined parameters in order to offer real-time online monitoring feedback
to users. The data gathered from different IoT sensors would be used in combination with
other data to perform data analysis and the results obtained are used to propose preventive
measures on how to minimize the impact of pollution. The foundation laid by this study
will be kept in order to develop a fully integrated IoT system in the future.
The next section will provide insights on the research component selection, prototype
setup, sensor calibrations, and test site selection. Results are given in Section 3, which is
followed by discussions in Section 4. The final section concludes the paper.
2. Design and Development
The development of a simple prototype system fit for water quality monitoring needs
to be comprised of the following components:
1.
2.
3.
Multiple sensors to collect relevant data from the environment.
A central microcontroller loaded with a computer program to read analogue data and
convert them to digital output.
A portable laptop with relevant software to read the digital data and present the
data in an understandable format on a screen, as well as to provide power to the
microcontroller.
The main component of the monitoring system is the Arduino UNO R3 Board shown
in Figure 2. It is a microcontroller board based on the ATmega328 with three important
features:
1.
A total of 6 analog input pins labelled A0 to A5 to allow up to a maximum of 6 analog
sensors to connect directly to the Arduino.
Environments 2021, 8, 6
5 of 15
2.
3.
A total of 2 power supplies pin labelled 3.3 volts and 5 volts with in-built voltage
regulation to provide power to sensors.
A USB plug that can be used in conjunction with a USB cable to connect with a
microprocessor.
−
Figure 2. Arduino board and its connections.
−
−
− microcontroller with four accommodating sensors:
The system
used is an Arduino
pH, Temperature, Turbidity, and Total Dissolved Solids (TDS). Sensors were chosen based
on ease of use, measurability (of parameters), portability, as well as being economical and
cost-effective as a strict budget must be adhered to. The sensors are collectively shown in
Figure 3.
−
−
−
(a)
−
(b)
(c)
(d)
Figure 3. (a) pH sensor, (b) temperature sensor, (c) turbidity sensor, (d) total dissolved solids sensor.
Environments 2021, 8, 6
6 of 15
Figure 3a shows the RELAND SUN pH sensor with a temperature range of −10 ◦ C to
50
It has a response time of under 5 s but a settling time of nearly a minute for readings
to stabilize. Figure 3b shows the DS18B20 temperature sensor that has an operating
temperature range from −55 ◦ C to +125 ◦ C with accuracy +/−0.5 ◦ C (between the range
−10 ◦ C to 85 ◦ C). The ReYeBu turbidity sensor shown in Figure 3c, was used to measure
turbidity and has an operating temperature of 5 ◦ C~90 ◦ C with a response time of less than
500 ms. The OOTRTY total dissolved solids (TDS) sensor referred to in Figure 3d was used
to measure TDS. It has a measurement range of 0~1000 ppm and measurement accuracy of
±10% F.S. It should be noted that the sensor cannot be used above 55 ◦ C and it is advisable
not to place the sensor too close to the edge of a water surface.
Figure 4 below shows the connection of the sensors to the Arduino microcontroller
and operating laptop.
◦ C.
Figure 4. Block diagrams of the connections.
Due to the limited number of power outputs of the Arduino, the power pin of the
Arduino was connected to a breadboard to allow powering of multiple devices at the same
time, as shown in Figure 5 below.
Figure 5. Setup of the Arduino-based sensor system.
Both turbidity and pH sensors require calibration to convert the obtained voltage readings to the corresponding turbidity and pH readings. To calibrate, different concentrations
Environments 2021, 8, 6
7 of 15
of soil and water mixtures and different pH solutions were used to calibrate the turbidity
and pH sensors, respectively.
The turbidity sensor was calibrated by measuring several soil and water mixtures
made from known masses of soil mixed with 0.6 L of water. The data are tabulated below
in Table 2.
Table 2. Data for turbidity calibration.
Soil Mass
(g)
Water
Volume (L)
Nephelometric Turbidity
Units (NTU) Readings
Average
NTU
Reading
Average
Voltage
Reading (V)
1.0169
2.0190
3.0096
4.0201
0.6
0.6
0.6
0.6
120.1, 128.3, 140.4, 121.3, 120.6
392.0, 398.0, 392.0, 396.0, 400.0
407.0, 422.0, 412.0, 428.0, 422.0
677.0, 657.0, 690.0, 702.0, 664.0
126.14
395.60
418.20
678.00
3.97
3.68
3.58
3.25
Figure 6 below shows the plotted relationship between the average voltage readings
and average NTU readings.
1000
Average NTU reading
900
800
700
600
500
400
300
200
100
0
3
3.2
3.4
3.6
3.8
4
4.2
Average voltage readings (V)
Figure 6. Relationship between turbidity and voltage.
The pH sensor was calibrated by testing it against three solutions of Atlas Scientific
pH samples of pH 10, 7, and 4. Due to a room temperature of 20 ◦ C, there is a slight pH
change and actual pH is adjusted according to specification labels. Data from calibration is
found below in Table 3.
Table 3. Data for pH calibration.
pH
Voltage [V]
Average Voltage
[V]
pH 10.06
pH 7.02
pH 4.00
2.20, 2.20, 2.20, 2.19, 2.20, 2.19, 2.21, 2.20, 2.20, 2.20, 2.20
2.69, 2.65, 2.65, 2.64, 2.65, 2.64, 2.65, 2.64, 2.63, 2.64, 2.65
3.01, 3.09, 3.02, 3.02, 3.03, 3.02, 3.03, 3.03, 3.03, 3.04, 3.03
2.20
2.65
3.03
Figure 7 below shows the plotted relationship between the average voltage readings
and average pH readings.
Programming was done with an Integrated Development Environment (IDE) based
in Java with the programming language C/C++. With the IDE, program sketches can be
made, compiled, debugged, and uploaded to the Arduino microcontroller board to be
executed. References to build the program sketches may be found online and OneWire
Environments 2021, 8, 6
8 of 15
and DallasTemperature libraries needed to be downloaded for the temperature sensor to
function.
10.6
9.6
8.6
pH
7.6
6.6
5.6
4.6
3.6
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
3
3.1
Average voltage (V)
Figure 7. Relationship between pH and voltage.
Testing was carried out at a small stream within the Universiti Brunei Darussalam
(UBD) campus ground, shown in Figure 8. Underground pipe discharge is the source
of the stream and is human controlled such that discharges are only active during the
morning. Water from the stream thus flows downstream during the morning and the
stream is otherwise still. The testing ground is also shaded by trees. Testing was done
during working days over a period of 4 weeks for a total of 20 days. Data were taken
once in the morning at 10:00 a.m. and once in the afternoon at 4:00 p.m. Readings were
taken every 10 s over a 2-min time period to establish the average reading for a particular
parameter.
Figure 8. Testing site.
Environments 2021, 8, 6
9 of 15
3. Results
Table 4 below shows the data gathered during the duration of the test. Data for pH
were initially unavailable while the pH sensor was being calibrated. Readings for pH only
became available from week 3 onwards after the sensor was readied.
Table 4. Data for the duration of the test.
Turbidity
(V)
Turbidity
(NTU)
Total
Dissolved
Solids (PPM)
pH (V)
pH
26.55
27.73
25.89
27.56
25.92
27.67
25.35
26.81
25.87
27.12
3.06
2
3.06
0.75
1.86
0.69
1.43
0.85
2.45
1.43
827.43
1639.13
820.54
2596.45
1744.9
2643.2
2073.71
2516.73
1288.85
2076.78
19.4
30.8
25.2
33.8
202
98
29
39
47
45
-
-
10:20 am
4:10 pm
10:00 am
4:10 pm
10:30 am
4:00 pm
10:20 am
4:10 pm
10:10 am
4:00 pm
25.92
27.63
25.96
27.7
26.34
27.51
26.38
27.3
26.75
27.84
1.87
0.8
1.25
0.87
1.34
1.08
1.11
0.85
1.54
0.8
1732.64
2557.36
2210.15
2499.11
2141.93
2338.15
2320.52
2515.2
1990.17
2555.06
74.4
114
131
107
272
260
164
81.6
148.9
78.4
-
-
Week 3
21 October 2019
Monday
22 October 2019
Tuesday
23 October 2019
Wednesday
24 October 2019
Thursday
26 October 2019
Saturday
10:50 am
3:50 pm
10:00 am
4:10 pm
10:10 am
4:00 pm
10:50 am
4:30 pm
12:30 pm
6:20 pm
26.78
28.23
26.84
28.21
24.28
25.59
25.26
26.88
26.84
27.27
1.42
0.95
2.06
0.79
1.38
1.57
1.69
1.36
2.02
1.39
2080.61
2443.15
1591.6
2561.19
2112.8
1967.94
1875.97
2128.13
1622.26
2105.14
92
79
418
287
251
68
125
89
373.4
379.2
2.2
1.99
1.92
10.15
11.71
12.23
Week 4
28 October 2019
Monday
29 October 2019
Tuesday
30 October 2019
Wednesday
1 November 2019
Thursday
3 November 2019
Saturday
10:20 am
3:20 pm
11:00 am
4:30 pm
9:10 am
4:10 pm
10:50 am
3:00 pm
11:30 am
4:30 pm
26.3
26.47
25.27
26.16
25.27
26
25.88
26.31
24.39
25.01
2.04
1.59
2.33
1.35
1.67
1.83
1.82
1.41
2.29
1.67
1606.93
1948.78
1386.96
2131.2
1892.06
1770.19
1776.32
2086.74
1414.55
1889
333.8
328.4
322.7
513
604
266
271.2
267
402.4
956.3
3.39
3.42
3.52
3.58
3.24
1.94
1.67
2.07
3.27
2.69
1.43
1.21
0.47
0
2.51
12.08
14
11.11
2.29
6.52
Date
Time
Week 1
7 October2019
Monday
8 October 2019
Tuesday
9 October 2019
Wednesday
10 October 2019
Thursday
12 October 2019
Saturday
10:30 am
4:30 pm
10:10 am
4.10 pm
10:30 am
4.00 pm
10:40 am
4.00 pm
9:50 am
3:50 pm
Week 2
14 October 2019
Monday
15 October 2019
Tuesday
16 October 2019
Wednesday
17 October 2019
Thursday
19 October 2019
Saturday
Temperature
(◦ C)
The data from the four weeks were compiled and plotted on graphs to analyze any
correlation between parameters and to evaluate the health of the river.
4. Discussion
From Figure 9, it can be seen that temperature in the morning varies between 24 ◦ C
to 27 ◦ C whereas afternoon temperature varies from 25 ◦ C to over 28 ◦ C. Additionally
from Table 5, the maximum recorded temperature is 28 ◦ C while the lowest is 24 ◦ C, and
Environments 2021, 8, 6
10 of 15
the deviation is slight per day. Heating of the earth by the sun is cumulative throughout
the day and maximum temperature of the day is achieved during noon to mid-afternoon,
between 12 p.m. and 3 p.m., when accumulated solar energy is at its maximum [25]. In
a tropical country such as Brunei, the season is akin to summer all year round and solar
radiation is high so it is not unusual for the river temperature to approach 30 ◦ C. Unsteady
heating by the sun causes variations in heat accumulation and accounts for fluctuations in
daily temperatures. Data for day 13 and 20 are noted for being lower than expected due to
the presence of rain earlier in the day.
Figure 9. Temperature variation.
Table 5. Summary of parameters.
Average
Minimum
Maximum
Standard
Deviation
Temperature
Turbidity
TDS
pH
26.48
24.28
28.23
1986.99
820.54
2643.2
210.67
19.40
956.30
6.59
0.00
14.00
0.98
444.56
188.75
5.17
Figure 10 shows that turbidity values are higher in the afternoon. The tested stream
is artificial, its contents come from underground pipes that flow in the morning but not
in the afternoon. According to [26], when the stream is flowing the kinetic energy of the
high-speed stream can resuspend river bottom solids and carry suspended solids which
would account for high turbidity values. In a still body of water, suspended solids would
settle on the river bottom and give lower turbidity readings. Thus, according to theory,
the values should be higher in the morning but Figure 10 does not justify this. A possible
explanation would be the oversaturation of suspended solids in the afternoon still river.
With no flow, the solids remain within the stream and contribute to turbidity readings and
there is no sediment transfer downstream. It is also known that turbidity and temperature
share a positive correlation. Suspended solids have a higher heat capacity than water and
are able to absorb more heat, leading to a higher recorded temperature [27,28]. Indeed,
both temperature and turbidity readings are higher in the afternoon. It should however
be noted that the exact turbidity value is difficult to pinpoint due to natural variation in
season, local geology, river flow, weather, and climate and readings vary slightly every few
seconds when measuring, though a value not exceeding 3000 NTU is deemed favorable.
Figure 11 shows an increasing trend in dissolved solids in the river over the course
of the sampling period. To begin understanding this trend, the relationship between total
dissolved solids, conductivity, and temperature must first be clarified. Total dissolved
solids and conductivity are directly proportional to one another. Pure water cannot hold
any electrical charge but water that contains minerals and salts can. Any body of water
Environments 2021, 8, 6
11 of 15
272
273
274
275
276
277
that contains dissolved salts and mineral will give a conductivity reading. Conductivity of
water (and by extension dissolved solids) is expected to increase with temperature. For
each 1 ◦ C increment, conductivity rises by 2–4%. Temperature influences conductivity
by increasing ion mobility and dissolvability of many salts and minerals [29]. Figure 12
shows that average temperature increased from Day 4 to 12, likewise there was a general
increase in TDS values in the same period. In this period, the correlation coefficient was 261
ppm/◦ C in the morning and 177 ppm/◦ C in the afternoon, indicating a big increase in total
dissolved solids per temperature increment. Furthermore, the data from Day 15 to 19 where
there was a decrease in average temperature also resulted in a general decrease in TDS
values in the same period. During this period, the correlation coefficient was 106 ppm/◦ C
in the morning and 117 ppm/◦ C in the afternoon, indicating a marginal decrease in total
dissolved solids per temperature decrease. Total dissolved solids (TDS) is usually low for
freshwater sources, at less than 500 ppm [30] which is agreed by most of the data here.
Figure 10. Turbidity variation.
Figure 10. Turbidity variation.
Figure 11. Total dissolved solids (TDS) Variation.
Environments 2021, 8, 6
12 of 15
Figure 12. pH Variation.
As can be seen from Figure 12 and Table 5, the pH values recorded were inaccurate.
The afternoon data for day 17 and morning data for day 19 lie within the extremes of the pH
range of 0–14. A reason for low water pH values can be related to stimulation treatments or
CO2 sequestration operations performed in the oil and gas industry [31,32] however which
have not been conducted in this area. The remaining pH values vary significantly each
day and onsite readings can change drastically every second. This is a stark contrast to its
stability when being calibrated under lab conditions. A logical explanation would be that
this is due to the artificial nature of the stream where its contents are influenced by local
underground discharge pipes. The pipes may have contained high amounts of hydrogen
or hydroxy ions. Another possible explanation would be the decomposition of leaves in the
river bottom which would release carbon dioxide, allowing the formation of carbonic acid.
Carbonic acid can lose one or both its hydrogen ions as shown in the equations below:
Equation (1): Formation of carbonic acid
𝐶𝑂 ((𝑔)
+ 𝐻 𝑂 (𝑙) ⇌ 𝐻 𝐶𝑂 (𝑎𝑞)
CO
2 g ) + H2 O ( l ) ⇋ H2 CO3 ( aq )
Equation (2): Loss of first hydrogen ion
𝐻 𝐶𝑂 (𝑎𝑞) ⇌ 𝐻𝐶𝑂
(𝑎𝑞) + 𝐻 (𝑎𝑞)
H2 CO3 ( aq) ⇋ HCO3 − ( aq) + H + ( aq)
Equation (3): Loss of second hydrogen ion
HCO3 − ( aq) ⇋ CO3 2− ( aq) + H + ( aq)
(1)
(2)
(3)
The release of hydrogen ions will decrease the pH of the river. However, at higher pH
the equilibrium will shift towards the left side, promoting formation of carbonic acid and
the resulting decrease in hydrogen ions will increase the pH of the river [33]. Regardless,
the shift in pH due to equilibrium should not be too great and, admittedly, the data gathered
for pH is inadequate and more time might have made for better data comparison and
evaluation. There were no data for pH for the first two weeks while the pH sensor was still
being calibrated.
According to a report by Tziortzioti et al. (2019), the system they used is nearly
identical to the same setup that we had used, apart from different sensors and an enclosed
box to protect the Arduino microcontroller and sensor modules [34]. From their experiment
it can be seen that the readings they obtained are relatively stable, whereas, in the present
setup, the readings of pH differ greatly every second. Taking into consideration that the
Environments 2021, 8, 6
13 of 15
pH sensor was stable during calibration, it may be surmised that the artificial nature of
the sample stream may be the cause of the fluctuations, though an experiment in normal
water may be needed to justify this claim. The results that they obtained align quite well
with our present study. It is also noted that they experience the same problem with the
turbidity sensor as in this study, the sensor cable being too short, the issue of the sensor
floating on the water surface instead of being fully submerged, and sensor malfunctioning
due to water infiltration into sensor core. Additionally, their turbidity sensor suffered from
rust due to seawater exposure and needed to be replaced.
5. Conclusions
The results seem to indicate that the stream is healthy, however more tests are required
to further determine data validity and operability of the current system before the system
can be deployed elsewhere. The prototype yet lacks many capabilities and thus require
upgrades and expansions; namely, to give it the ability to transmit data through a wireless
network to a remote laptop or mobile at any given time and location, and a stronger
memory drive or the ability to store data in databases. To that end, a Raspberry Pi 4 Model
B could be used in conjunction with the current system. The Pi offers ground-breaking
increases in processor speed, multimedia performance, memory, and connectivity. It is
outfitted with dual-band wireless LAN and Bluetooth which can be routed to a dedicated
monitor which is vital in wireless networking. Additionally, a SIM card would allow it
to store quantities of data from the Arduino. The combined central system must then
be encased to prevent potential detrimental drawbacks from exposure to environmental
weather and conditions. Among the sensors, the turbidity sensor must be improved or
replaced altogether. An opening at the top of the turbidity sensor allows water to enter if
the sensor is lowered too deep into the stream and the influx causes a direct disturbance
in readings. Its short cable meant that it is also severely limited to use at the water edges.
A suitable replacement could be the digital type RELIHONES turbidity sensor that is
waterproof and offers a longer cable. Implementation of additional sensors in the project
extension will allow for monitoring of extra parameters, particularly of concentration
of various ions. Such data may be helpful for better determining river health through
calculation of Water Quality Index (WQI) or other related indexes. Finally, changes could be
made to the testing environment and schedule. Conducting the test at additional locations
and taking more frequent data readings should provide for much needed additional data
and accuracies in determining river health and validating the monitoring system.
Author Contributions: Writing—original draft preparation and data acquisition, W.J.H.; investigation and writing—original draft preparation, W.J.H. and N.S.; conceptualization, validation,
methodology and supervision, N.S., E.A., H.S., R.A.A., Z.M.; methodology, E.A., R.A.A., Z.M., S.H.G.;
manuscript editing, N.S., M.N.A.N., S.H.G. All authors have read and agreed to the published version
of the manuscript.
Funding: This research was funded by Universiti Brunei Darussalam Sensor Technology Research
Grant, reference number UBD/RSCH/URC/NIG/3.0/2019/001.
Conflicts of Interest: The authors declare no conflict of interest.
References
1.
2.
3.
4.
5.
McClelland, C. What Is IoT? A Simple Explanation of the Internet of Things. Available online: https://www.iotforall.com/whatis-iot-simple-explanation/ (accessed on 13 May 2019).
Diène, B.; Rodrigues, J.J.P.C.; Diallo, O.; Ndoye, E.H.M.; Korotaev, V.V. Data management techniques for Internet of Things. Mech.
Syst. Signal Process. 2020, 138, 106564. [CrossRef]
McClelland, C. IoT Explained—How Does an IoT System Actually Work? Available online: https://www.leverege.com/blogpost/
iot-explained-how-does-an-iot-system-actually-work (accessed on 29 October 2016).
Li, C.-Z.-E.; Deng, Z.W. The Embedded Modules Solution of Household Internet of Things System and The Future Development.
Procedia Comput. Sci. 2020, 166, 350–356. [CrossRef]
Dachyar, M.; Zagloel, T.; Saragih, L. Knowledge Growth and Development: Internet of Things (Iot) Research, 2006–2018. Heliyon
2020, 5, e02264. [CrossRef] [PubMed]
Environments 2021, 8, 6
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
14 of 15
Cipolla, S.; Maglionico, M.; Masina, M.; Lamberti, A.; Daprà, I. Real time monitoring of water quality in an agricultural area with
salinity problems. Environ. Eng. Manag. J. 2019, 18, 2229–2240.
Pal, A.; Kant, K. Water flow Driven Sensor Networks for leakage and contamination monitoring. In Proceedings of the 2015
IEEE 16th International Symposium on A World of Wireless, Mobile and Multimedia Networks (WoWMoM), Boston, MA, USA,
14–17 June 2015. [CrossRef]
IoT Smart City—What Is Smart Home? The Internet of Things. Available online: http://www.infiniteinformationtechnology.
com/iot-smart-city-what-is-smart-home (accessed on 27 November 2016).
Mallon, S. IoT Is the Most Important Development of the 21st Century. Available online: https://www.smartdatacollective.com/
iot-most-important-development-of-21st-century/ (accessed on 29 October 2018).
Ranger, S. What Is the IoT? Everything You Need to Know about the Internet of Things Right Now. Available online: https://
www.zdnet.com/article/what-is-the-internet-of-things-everything-you-need-to-know-about-the-iot-right-now/ (accessed on
21 August 2018).
Everard, M.; Powell, A. Rivers as living systems. Aquat. Conserv. Mar. Freshw. Ecosyst. 2002, 12, 329–337. [CrossRef]
U.S. Environmental Protection Agency [EPA]. National Nonpoint Source Program—A Catalyst for Water Quality Improvements.
Available online: https://www.epa.gov/sites/production/files/2016-10/documents/nps_program_highlights_report-508.pdf
(accessed on 2 November 2020).
Donlon, A.; McMillan, B. Best Management Practices to Control Nonpoint Source Pollution: A Guide for Citizens and Town Officials; The
Watershed Assistance Section, NH Department of Environmental Services: Concord, NC, USA, 2004.
Hader, D.P.; Barnes, P.W. Comparing the impacts of climate change on the responses and linkages between terrestrial and aquatic
ecosystems. Sci. Total Environ. 2019, 682, 239–246. [CrossRef] [PubMed]
Tornevi, A.; Bergstedt, O.; Forsberg, B. Precipitation Effects on Microbial Pollution in a River: Lag Structures and Effect
Modification. PLoS ONE 2014, 9, e98546. [CrossRef] [PubMed]
Ismail, W.; Hashim, M. Changing trends of rainfall and sediment fluxes in the Kinta River catchment, Malaysia. In Proceedings of
the International Association of Hydrological Sciences, New Orleans, LA, USA, 11–14 December 2014. [CrossRef]
Karr, J.R.; Fausch, K.D.; Angermeier, P.L.; Yant, P.R.; Schlosser, I.J. Assessing Biological Integrity in Running Waters: A Method and its
Rationale; Special Publication 5; Illinois Natural History Survey: Champaign, IL, USA, 1986.
Norris, R.H.; Thoms, M.C. What is river health? Freshw. Biol. 1999, 41, 197–209. [CrossRef]
Azhar, A.S.; Latiff, A.H.A.; Lim, L.H.; Gödeke, S.H. Groundwater investigation of a coastal aquifer in Brunei Darussalam using
seismic refraction. Environ. Earth Sci. 2019, 78, 1–17. [CrossRef]
Gödeke, S.H.; Malik, O.A.; Lai, D.T.C.; Bretzler, A.; Mansor, N.H. Water quality investigation in Brunei Darussalam: Investigation
of the influence of climate change. Environ. Earth Sci. 2020, 79, 419. [CrossRef]
Marshall, D.J.; Abdelhady, A.A.; Wah, D.T.T.; Mustapha, N.; Gödeke, S.H.; De Silva, L.C.; Hall-Spencer, J.M. Biomonitoring
acidification using marine gastropods. Sci. Total Environ. 2019, 692, 833–843. [CrossRef] [PubMed]
Gödeke, S.; Geistlinger, H.; Fischer, A.; Richnow, H.H.; Wachter, T.; Schirmer, M. Simulation of a reactive tracer experiment using
sto-chastic hydraulic conductivity fields. Environ. Geol. 2008, 55, 1255–1261. [CrossRef]
Khalid, M. Plans to Prevent the Degradation of Water Quality in Brunei. Available online: https://borgenproject.org/waterquality-brunei/ (accessed on 31 July 2018).
Yusri, N.I.A.B.; Gödeke, S.H.; Mohd Mansor, N.H.B.H. A water quality database for Brunei—The case of Bukit Barun and Layong.
In Proceedings of the 7th Brunei International Conference on Engineering and Technology 2018 (BICET 2018), Bandar Seri
Begawan, Brunei, 12–14 November 2018. [CrossRef]
Spano, D.; Duce, P.; Snyder, R.L.; Cesaraccio, C. An improved model for determining degree-day values from daily temperature
data. Int. J. Biometeorol. 2001, 45, 161–169. [CrossRef] [PubMed]
Perlman, H. Turbidity in the USGS Water Science School. Available online: http://water.usgs.gov/edu/turbidity.html
(accessed on 2 November 2020).
Moore, R.D.; Spittlehouse, D.L.; Story, A. Riparian microclimate and stream temperature response to forest harvesting: A review.
J. Am. Water Resour. Assoc. 2005, 41, 813–834. [CrossRef]
Ling, T.-Y.; Soo, C.-L.; Sivalingam, J.-R.; Nyanti, L.; Sim, S.-F.; Grinang, J. Assessment of the Water and Sediment Quality of
Tropical Forest Streams in Upper Reaches of the Baleh River, Sarawak, Malaysia, Subjected to Logging Activities. J. Chem. 2016,
1–13. [CrossRef]
Poisson, A. Conductivity/salinity/temperature relationship of diluted and concentrated standard seawater. IEEE J. Ocean. Eng.
1980, 5. [CrossRef]
Moran, S. Clean water characterization and treatment objectives. In An Applied Guide to Water and Effluent Treatment Plant Design;
Elsevier: Amsterdam, The Netherlands, 2018; pp. 61–67. [CrossRef]
Gharbi, O.; Goedeke, S.; Al-Sammaraie, M.; Al-Shahwani, S.; Cheneviere, P.; Al-Mohannadi, N.; Julien, P. Core-flood analysis of
acid stimulation in carbonates: Towards effective diversion and water mitigation. In Proceedings of the International Petroleum
Technology Conference, IPTC 2014: Unlocking Energy Through Innova-tion, Technology and Capability, Doha, Qatar, 19–22
January 2014; Volume 4, pp. 3270–3274. [CrossRef]
Environments 2021, 8, 6
32.
33.
34.
15 of 15
Sazali, Y.A.; Sazali, W.M.L.; Ibrahim, J.M.; Dindi, M.; Graham, G.; Gödeke, S. Investigation of high temperature, high pressure,
scaling and dissolution effects for Carbon Capture and Storage at a high CO2 content carbonate gas field offshore Malaysia. J. Pet.
Sci. Eng. 2019, 174, 599–606. [CrossRef]
Fu, X.; Finley, A.; Carpenter, S. Formation Damage Problems Associated with CO2 Flooding. In Formation Damage during Improved
Oil Recovery; Gulf Professional Publishing: Oxford, UK, 2018; pp. 305–359. [CrossRef]
Tziortzioti, C.; Amaxilatis, D.; Mavrommati, I.; Chatzigiannakis, I. IoT sensors in sea water environment: Ahoy! Experiences
from a short summer trial. Electron. Notes Theor. Comput. Sci. 2019, 343, 117–130. [CrossRef]