Boi Paayos NG Table
Boi Paayos NG Table
Boi Paayos NG Table
by:
Joyen Rap Benzer I. Lagmay
Jan Angelo Tan Belda
July 2024
APPROVAL SHEET
Prepared and submitted by Joyen Rap Benzer Lagmay and Jan Angelo Tan
Belda, in partial fulfillment of the requirements for the degree of Bachelor of
Science in Electronics Engineering has been examined and is recommended for
acceptance and approval by the adviser(s)
This thesis paper is hereby approved and accepted by the College of Science,
Information Technology, and Engineering as fulfillment of the thesis requirement
for the degree of Bachelor of Science in Electronics Engineering
2
ACKNOWLEDGEMENTS
The success of this study can be attributed to the combined efforts of the team,
which have proven to be more beneficial than the efforts of the individual
researchers. These experts have opened up opportunities for progress and
learning in the study of this topic. The researchers would like to acknowledge and
appreciate the key individuals who played a crucial role in their achievements:
Above all, we express our gratitude to our Almighty God, who has given us
wisdom, strength, guidance, and determination to overcome obstacles and
complete this important task. Your limitless love and amazing grace leave us in
awe. You are the one who truly deserves all honor and praise!
To our parents, whose endless love and unwavering support have motivated us
to always give our best in everything we do. We are grateful for your care of our
financial, emotional, and spiritual needs. Your love and support have always
pushed us to excel!
To our thesis adviser, Engr. Abdul Hadi H. Nograles, for his unwavering
assistance in building prototypes, sharing expertise, and directing
implementation. His encouragement and guidance were crucial to the success of
this research project. We are truly grateful for his significant contribution to our
study.
To our relatives and friends, we express our gratitude for sharing their wisdom
and continuous prayers. Your steadfast faith has been a driving force in helping
us reach this milestone!
Finally, to each and every person who contributed in their own special way, thank
you for helping us overcome the greatest challenge of our college experience.
3
TABLE OF CONTENTS
TITLE PAGE............................................................................................................................................
APPROVAL PAGE...................................................................................................................................
ACKNOWLEDGEMENT............................................................................................................................
TABLE OF CONTENTS.............................................................................................................................
LIST OF TABLES......................................................................................................................................
LIST OF FIGURES....................................................................................................................................
ABSTRACT..............................................................................................................................................
CHAPTER 1: INTRODUCTION..................................................................................................................
Background Context............................................................................................................
Research Questions.............................................................................................................
Synthesis of Literature.......................................................................................................
Methodological Issues........................................................................................................
Critical Evaluation..............................................................................................................
4
Implications for Future Research........................................................................................
CHAPTER 3: METHODOLOGY..................................................................................................................
Conceptual Framework......................................................................................................
Theoretical Framework......................................................................................................
Methodology....................................................................................................................
checking .............................................................................................................
checking .............................................................................................................
Readings .............................................................................................................
(formazine) .........................................................................................................
Turbidimeter) ......................................................................................................
Readings..............................................................................................................
5
Atmospheric Pressure Sensor ..................................................................................
Gantt Chart........................................................................................................................
.....................................................………………………………………………………………………………………
………………………………………………………………………………………………………………91
6
Standardized Atmospheric Pressure and Temperature versus Atmospheric
REFERENCES..........................................................................................................................................
APPENDICES..........................................................................................................................................
7
LIST OF TABLES
Table 2.0. Water level Ultrasonic Sensors used in Related Studies..............................................
Table 2.1. Turbidity Sensors used in Related Studies...................................................................
Table 2.2. Pressure Sensors used in Related Studies...................................................................
Table 3.0: Sensor height sensitivity test.........................................................................................
Table 3.1: Field testing accuracy reading......................................................................................
Table 3.2: Comparison of Sensor height sensitivity.......................................................................
Table 3.3: Comparison of Field testing accuracy...........................................................................
Table 3.4: Serial Dilution of 800 NTU (formazine) to create different NTU levels..........................
Table 3.5: Voltage reading of Turbidity sensor from different NTU solutions and
NTU readings of Eutech Instrument from the diluted NTU solutions..............................................
Table 3.6: Field testing of turbidity level: Eutech Instrument Turbidimeter vs
TS_300B NTU vs True NTU reading.............................................................................................
Table 3.7: Field testing of turbidity level: Eutech Instrument Turbidimeter vs Hach
2100Q............................................................................................................................................
Table 3.8: Data gathering for Standardized tools and BMP108 module at 15
minutes interval..............................................................................................................................
Table 3.9: Data gathering for the atmospheric pressure of the 3 devices: Sensor
A, Sensor B, and Reference device...............................................................................................
Table 3.10: Data gathering for the temperature of the 3 devices: Sensor A,
Sensor B, and Reference device...................................................................................................
Table 3.11 Data Storage and Logging Test...................................................................................
Table 4.0: Water Level Sensor height sensitivity.........................................................................
Table 4.1: Water Level Sensor height sensitivity for JSN SR04T...............................................
Table 4.2: Comparison of Sensor height sensitivity.......................................................................
Table 4.3: Field testing data (A01NYUB).......................................................................................
Table 4.4: Field testing data (JSN SR04T)....................................................................................
Table 4.5: Comparison of Field testing accuracy...........................................................................
Table 4.6: Serial Dilution of 800 and 100 NTU (formazine) to create different NTU
levels..............................................................................................................................................
Table 4.7 : Voltage reading of Turbidity sensor from different NTU solutions and
NTU readings of Eutech Instrument from the diluted NTU solutions..............................................
Table 4.8: Field testing of turbidity level: Eutech Instrument Turbidimeter vs
TS_300B NTU vs True NTU reading.............................................................................................
Table 4.9: Field testing of turbidity level: Eutech Instrument Turbidimeter vs Hach
2100Q............................................................................................................................................
Table 4.10: Data gathering for Standardized tools and BMP108 module at 15
minutes interval..............................................................................................................................
Table 4.11: F-statistics for temperature readings (standard vs. sensor)........................................
Table 4.12: Data gathering for the temperature of the 3 devices: Sensor A,
Sensor B, and Reference device...................................................................................................
Table 4.13: Comparison of Temperature Readings.......................................................................
Table 4.14: Data gathering for the air pressure of the 3 devices: Sensor A,
Sensor B, and Reference device...................................................................................................
Table 4.15: Comparison of Pressure Readings.............................................................................
Table 4.16: Comparison of Stored data vs Expected data.............................................................
8
LIST OF FIGURES
9
ABSTRACT
This study aims to enhance flood monitoring systems by evaluating the accuracy
and reliability of various sensors, including ultrasonic, turbidity, and atmospheric
pressure sensors, integrated with data storage and logging systems. Conducted
at the Pasonanca Diversion Weir, the research involved a series of tests to
measure sensor performance in real-world conditions. The ultrasonic sensor
demonstrated high precision in measuring distances ranging from 1 to 6 meters,
with most errors falling within ±1%. Conversely, the turbidity sensor exhibited
limited accuracy at low NTU values, though it performed reliably in high-turbidity
environments. The atmospheric pressure sensor provided consistent data,
aligning closely with standardized values in both enclosed and open cases. Data
storage and logging were verified through the RTC DS1302 module and microSD
card, which showed reliable long-term performance without data loss. The
findings suggest the ultrasonic sensor is suitable for applications requiring
precise distance measurements, such as water level monitoring, while the
turbidity sensor should be limited to high-turbidity environments. The atmospheric
pressure sensor's consistent performance supports its use in diverse
environmental conditions. The study underscores the importance of selecting
appropriate sensors based on specific use cases and environmental conditions,
and recommends further calibration and advanced techniques to enhance sensor
accuracy, particularly for turbidity measurements. These insights contribute to
more effective and reliable flood monitoring systems, ensuring timely and
accurate environmental data collection for disaster management and response.
10
CHAPTER I
INTRODUCTION
Background of the Study
Flooding in coastal communities during significant storm events – which is
made worse with sea-level rise – has prompted coastal communities to
more closely monitor water levels. This includes roadway monitoring
systems that combine water level sensors and telemetry for a real-time
alert system. The alerts can be directed at city managers, news stations,
and mobile apps that drivers can access directly from their phones.
In contemporary industrial settings, information technologies play a pivotal
role, particularly in applications involving both simple and complex
automation [49]. Water reservoirs and tanks are integral components for
storing water resources in agricultural and industrial contexts. To ensure
the prevention of adverse consequences and to gather essential
information regarding water levels, continuous monitoring of these storage
facilities is imperative. Remote monitoring and data collection systems
become essential in such scenarios, facilitating the acquisition of data
based on predetermined parameters and the delivery of processed
information to users when necessary or for decision-making in complex
situations.
In various regions of the Philippines, numerous monitoring sensors, such
as those for water level and weather conditions, have been strategically
placed. The implementation of early warning and flood monitoring systems
is crucial to mitigate the impacts of floods. These sensors serve the
purpose of alerting the population about approaching typhoons or heavy
rainfall, as well as monitoring water levels in dams and along riverbanks.
Traditional flood monitoring systems, however, encounter challenges such
as inaccurate water level estimations arising from erroneous readings
from ultrasonic and water level sensors. Additionally, these conventional
systems often exhibit limited coverage and a slow rate of data
transmission, leading to delayed responses to flood events. Moreover,
their effectiveness is compromised in remote areas lacking cellular
network coverage [52].
Flood monitoring systems do not solely concentrate on water levels, but
also on water quality parameters like turbidity, which is a critical indicator
of water clarity and quality. Turbidity, the measurement of water
cloudiness or haziness, can have a significant impact on both human
health and the environment. Elevated turbidity levels can signal the
presence of harmful microorganisms, sediments, and pollutants, posing a
threat to the safety of drinking water and aquatic ecosystems. In
agricultural and industrial settings, maintaining low turbidity levels is
crucial to ensure the efficiency of irrigation systems and industrial
11
processes that rely on clean water. In times of low flow (base flow),
numerous rivers exhibit a transparent green hue, with turbidity devices
typically measuring below 10 NTU. However, when a rainstorm occurs,
sediment particles from the adjacent land are carried into the river,
resulting in a murky brown appearance that signifies elevated turbidity
levels. The integration of turbidity sensors into flood monitoring systems
can offer a comprehensive understanding of water quality, enabling timely
interventions to prevent contamination and safeguard public health. This
addition enhances the functionality of flood monitoring systems, ensuring
they not only warn about potential flooding but also about deteriorating
water quality conditions that may necessitate immediate attention.
This scenario poses a significant and serious challenge, as delays in
response could result in substantial harm to both individuals and property.
Therefore, there is a pressing need to develop a more efficient and
reliable flood monitoring and early warning system capable of covering
remote areas and facilitating real-time data transmission.
The trajectory of information technology has delineated research avenues,
encompassing the systematic assessment of water properties through the
utilization of sensors that convert mechanical quantities into electrical
ones. This research also delves into the classification of water quality for
human consumption, contributing to human health and ecosystem
preservation [53]–[57]. Professionals across various industries face time
constraints, limiting their ability to engage in continuous water level
monitoring. Considering water as an indispensable resource in our daily
lives [58], the primary objective of this project is to develop a device
capable of measuring water levels at the diversion weir and notifying users
in the monitoring stations near the diversion weir.
Existing water level measurements exhibit several drawbacks. Traditional
water level monitoring gauges require constant human supervision, exhibit
low accuracy levels, and present challenges in terms of automation. The
article addresses these limitations by employing an ultrasonic sensor for
water level measurement. The ultrasonic sensor emits waves towards the
diversion weir, records their propagation and return times, and after
multiple measurements, provides precise information about the water
level. This pertinent information is then relayed to users' mobile phones
through a GSM module, notifying them via SMS. This streamlined process
not only facilitates efficient water storage but also ensures stability for
daily tasks, prevents water wastage, and mitigates unnecessary costs.
12
event to the proper authorities, warning the communities affected, and
evacuating those communities.
Public and emergency management officials in Zamboanga City often rely
on an hourly report on the water level reading at the water diversion weir,
which is done manually, and relayed to the nearest station a few
kilometers away. Conducting the study will answer few specific problems:
Sensor Data Reliability
Ultrasonic Sensor
To address the issue of sensor data reliability, particularly
with regards to the water level readings at the diversion weir,
our system will incorporate an ultrasonic sensor. This sensor
will provide accurate and reliable data on the water levels,
ensuring that the information relayed to the authorities and
communities is timely and dependable. Additionally, the low-
cost aspect of the ultrasonic sensor aligns with the need for
cost-effective solutions in implementing disaster warning
systems. By utilizing this sensor, we aim to enhance the
accuracy and efficiency of the monitoring process, ultimately
contributing to timely warnings and effective evacuation
measures in the event of disasters. The current system of
manually measuring and relaying water level readings at the
water diversion weir in Zamboanga City poses several
problems, including the lack of real-time data, potential for
human error, and delays in communication. By integrating an
ultrasonic sensor into the monitoring system, we can ensure
the reliability and timeliness of the sensor data. This will
significantly improve the accuracy of water level readings
and enable rapid decision-making for disaster response and
evacuation measures. The proposed system addresses the
problem of sensor data reliability by incorporating an
ultrasonic sensor.
Turbidity Sensor
To further enhance the reliability of data in our disaster
warning system, it is crucial to incorporate a turbidity sensor
that can provide accurate and real-time measurements of
water clarity and suspended solids in the water. The turbidity
sensor will play a key role in monitoring water quality,
especially during events such as heavy rainfall or flooding,
when sediment and pollutants can affect the water clarity
and quality. By integrating a low-cost yet reliable turbidity
sensor into the system, we can ensure that the data on
water quality and turbidity levels is consistently monitored
and communicated to the relevant authorities and
13
communities. This will enable timely and informed decision-
making for disaster response and evacuation measures, as
well as facilitate the implementation of necessary measures
to address any water quality issues that may arise during
disaster events. The inclusion of a turbidity sensor in our
system will contribute to the overall reliability and
effectiveness of the disaster warning and management
system in Zamboanga City.
Atmospheric pressure
To improve the reliability of our flood prediction system, it's
essential to incorporate sensors for both air pressure and
temperature to provide accurate, real-time atmospheric data.
These sensors will be crucial for monitoring weather
conditions, especially during heavy rainfall or storms, which
can affect water levels and flood risks. By integrating low-
cost yet reliable air pressure and temperature sensors, we
ensure continuous monitoring and communication of critical
data to authorities and communities. This will support timely,
informed decision-making for disaster response and
evacuation, enhancing the overall effectiveness of flood
management in Zamboanga City.
Specific Objectives:
A. The Implementation of the A01NYUB and JSN SR04T Ultrasonic
Sensor Modules
14
● The height sensitivity of the A01NYUB and JSN
SR04T ultrasonic sensor modules.
b) To verify the ultrasonic sensor readings by comparing it to
the diversion weir’s gauge readings through percent error.
F. To compare the data stored and logged in the Module from the
actual data on continuous monitoring.:***
15
systems, providing valuable insights for engineers engaged in industrial
automation. Furthermore, the research aims to enhance flood monitoring
in the Philippines by overcoming the limitations of traditional systems,
offering a more efficient and reliable flood monitoring and early warning
system applicable to remote areas with limited cellular network coverage.
The integration of information technology in water quality assessment,
focusing on parameters like turbidity and pH, aligns with contemporary
trends in the field, contributing to broader goals of human health and
ecosystem preservation.
This study's innovative approach overcomes limitations associated with
traditional water level monitoring by proposing the use of ultrasonic
sensors, along with turbidity sensors and pressure sensors, and LoRa
modules. This not only improves accuracy and automation but also
streamlines the communication of water level information to users,
fostering efficient water storage practices and minimizing wastage. By
focusing on the systematic assessment of water properties through sensor
technology, the research aligns with the trajectory of information
technology. The outcomes are expected to influence the development of
more resilient and efficient monitoring frameworks, impacting both
academic research and practical applications in the field of forestry IoT
systems and beyond.
16
the Tumaga River area for a couple of weeks to assess performance in
the actual environment.
CHAPTER II
REVIEW OF RELATED LITERATURE
The construction of the Pasonanca River dam dates back to the American
colonization period. Subsequently, a gauge was installed on the diversion
dam to ascertain the water level in relation to the sea level in Zamboanga
City. As of writing, water level measurements were obtained through
manual means, specifically visual observation by human personnel, and
subsequently communicated to the water district at hourly intervals.
Problems with Manual Data Logging
The monitoring team currently relies on manual data logging, with
observations recorded every hour based on painted sea level markings
near the diversion weir intake pipe. However, during periods of intense
flooding, the monitoring team faces significant risks as they measure
these levels. The difficulties arise from poor visibility caused by harsh
weather conditions, including storms and strong winds.
Existing Solutions for Early Flood Monitoring System
This section examines existing solutions and related studies aimed at
addressing the issues outlined in Section 2.1. Notably, the discussion
includes the non-functional flood monitoring device installed at the
diversion weir. This device was initially implemented by the Project NOAH
of DOST and comprised multiple high-quality systems utilizing SMS
modules for wireless communication. However, the device's current
condition renders it non-operational and has long been disregarded.
Possible reasons for discarding the device include challenges related to
17
weak service signals in the area, posing difficulties for its primary
communication source to the main base. Additionally, other reasons for
the device's decommissioning are classified.
Zamboanga City Water District ’s Solution
Since then, the division weir team has reverted to manual methods of
flood monitoring, relying solely on the sea level markings near the division
weir. This traditional approach involves periodic visual inspections of water
levels, conducted by team members stationed at the diversion weir site.
Despite its simplicity, this method poses several limitations, particularly
during periods of intense flooding or adverse weather conditions. Visibility
challenges, especially during storms or low-light conditions, can hinder
accurate observations, leading to potential delays or inaccuracies in flood
monitoring efforts. Additionally, manual monitoring requires continuous
human presence at the site, placing personnel at risk during hazardous
weather events. As such, there is a pressing need for more robust and
automated flood monitoring solutions to enhance the safety and efficiency
of monitoring operations at the division weir.
Research Questions
1. What are the limitations and challenges of the traditional
water level monitoring system used by Zamboanga City
Water District (ZCWD)?
Traditional water level monitoring systems, such as those used by
the Zamboanga City Water District (ZCWD), often face numerous
limitations and challenges. These systems typically rely on manual
data collection and rudimentary measuring tools, which can lead to
several inefficiencies and inaccuracies. Manual monitoring is labor-
intensive and time-consuming, requiring personnel to be physically
present at monitoring sites. This method not only increases
operational costs but also poses significant risks during adverse
weather conditions, such as heavy rains or floods, when accessing
monitoring sites becomes dangerous [50], [51].
The lack of sensor data in traditional systems hampers the ability to
make real-time decisions and respond promptly to changing water
levels. Without automated sensors, data collection is sporadic and
often delayed, reducing the ability to predict and mitigate flood risks
effectively. The reliance on manual methods also increases the
likelihood of human error, further compromising the accuracy and
reliability of the data collected [59], [60].
18
2. What are the specific advantages of using A01NYUB
ultrasonic sensor, TS-300B turbidity sensor, and BMP180
barometric pressure sensor for flood monitoring in remote
locations of the diversion weir?
To address these limitations, the integration of advanced sensors
such as the A01NYUB ultrasonic sensor, TS-300B turbidity sensor,
and BMP180 atmospheric pressure sensor presents a promising
solution for flood monitoring in remote locations of the diversion
weir.
19
with microcontrollers like Arduino or Raspberry Pi for data
collection and processing [16]. In weather monitoring
applications, the BMP180 enables real-time tracking of
environmental parameters, which can be stored in
databases and displayed through graphical user interfaces.
For high-altitude balloon experiments, the sensor can trigger
cut-down mechanisms based on specific altitude,
temperature, or pressure conditions. Additionally, the
BMP180 has been incorporated into healthcare monitoring
systems, working alongside other sensors to measure vital
signs and transmit data to mobile applications , Abburu [18].
20
Data logging devices store sensor data locally, providing a backup
in case of communication failures. These devices can store large
amounts of data and are equipped with time-stamping features to
ensure data integrity. By using data loggers, the monitoring system
can continue to collect and save data during periods of connectivity
loss, which can be transmitted once the connection is re-
established. This redundancy ensures no data is lost, maintaining
the reliability of the monitoring system, Patel [8].
Synthesis of Literature
Water Level Monitoring
The implementation of flood monitoring and warning services necessitates
a scientifically rigorous approach . The fundamental components of a flood
forecasting system involve the application of hydrological models using
observed hydrometeorological data to derive river discharges and the
utilization of hydraulic/hydrodynamic models to simulate river stages
based on predicted streamflow. In certain scenarios, georeferenced water
surface elevations are employed to generate flood inundation maps, which
prove invaluable in disaster relief operations and government-led public
awareness initiatives. To ensure the provision of accurate and timely early
warning information, the operation of a Flood Early Warning System
(FEWS) demands robust technical capabilities. This discussion of survey
responses encompasses key aspects such as the levels of hydro-
meteorological observation systems in operation, prevalent types of
floods, the usage of hydrological/hydrodynamic models, and the nature of
forecasts generated.
According to A. Smith [10], Survey findings reveal that most river basins
have both rainfall and water level gauging stations, with approximately half
equipped with telemetric systems; the remainder either rely on manual
data recording, collection, and transfer, or employ semi-automated
methods where data recording is automatic while collection and
transmission are manual. Streamflow gauges are present in only half of all
basins, with 52% operated manually, and the remaining 48% divided into
38% telemetric and 10% semi-automated systems. The survey responses
indicate that the basins commonly experience fluvial and flash floods,
followed by pluvial floods and human-induced floods resulting from
21
upstream reservoir operations (Figure 2.1). Flash floods, posing a
significant threat to human lives globally, represent a major concern due to
their ability to be forecasted but with lead times too short for appropriate
preventive action .
Figure 2.0. Types of floods experienced by surveyed Flood Early Warning Systems
22
Figure 2.1. Flood monitoring methods
23
pipe networks, underground cisterns, and groundwater wells. It finds
extensive application in large-scale water conservancy projects, ocean
wave and tide observations, water quality monitoring, as well as water
level measurements in industrial and agricultural settings, G. J. Pottie and
W. J. Kaiser [23].
24
facilitating the sharing of information on the internet. The system
demonstrated efficiency through its collaborative role in overseeing,
processing, and communicating various operational aspects related to
background issues.
Getu et.al [29] devised a water level monitoring system with an integrated
automatic water pump controller, utilizing the electrical conductivity
property of water for determining tank water levels. The tank's total height
was divided into nine segments, each equipped with a metallic electrode
probe. These electrodes were linked to a voltage divider arrangement
utilizing series resistors (R1 and R2) and a supply voltage (Vcc). A certain
arrangement involving the floating terminals of the electrodes and the
grounded bottom electroderesulted to the output voltage becoming zero
when an electrode was immersed in water due to the water's conductivity.
A digital logic controller regulated the water pump based on the highest
and lowest voltage sensed by the electrodes.
Susheel [30] designed an automatic water pump controller based on a
float switch sensor, featuring a floating bob that moved in response to
changes in water level. When the water level was low, the bob rested at
the bottom of the tank, floating at the top when the tank was full. The bob's
movement triggered a reed switch, responsible for opening or closing to
activate the water pump through an electrical current. The limitation of this
system was that it only turned on the pump when the tank was completely
empty.
25
ultrasonic waves and measuring the time taken for the
waves to bounce back after hitting an object. The sensor's
waterproof design (indicated by "T" in the model name)
makes it suitable for outdoor use, including river monitoring
for flood prediction.
JSN SR04T
The JSN SR04T exhibits comparable data transmission
speed to the MB7389 HRXL-MaxSonar-WR, ensuring timely
updates on water level changes essential for real-time
monitoring applications. While generally accurate, the JSN
SR04T may display slightly lower reliability under certain
conditions compared to the MB7389 HRXL-MaxSonar-WR.
Nonetheless, it maintains good accuracy within a few
millimeters to centimeters, sufficient for precise distance
readings in flood prediction systems. Additionally, the JSN
SR04T provides reliable data accuracy, although it may be
more susceptible to environmental factors such as
temperature fluctuations and interference. Despite these
considerations, its accuracy remains effective in contributing
to the overall efficiency of flood prediction models and early
warning systems.ctive flood prediction, but careful calibration
26
may be necessary for optimal performance. Please note that
the device is waterproof, but it couldn't work underwater [31].
Turbidity monitoring
It is noteworthy that despite the longstanding focus on turbidity
measurement and monitoring in resarch, there have been limited
endeavors to create and implement low-cost sensors specifically designed
for managing fresh-water quality. The majority of water quality monitoring
products, as discussed in the preceding section, and turbidity sensor
designs [6],[7], tend to be sophisticated and often come with high costs,
thereby deviating from the overarching goal of this study.
27
Numerous online water quality monitoring systems, facilitated by WSN,
have been proposed, utilizing either Commercial Off-The-Shelf (COTS)
sensors [33], [34], [35], or custom-designed sensors [33] to track changes
in water quality in domestic running water, lakes, and rivers. These WSN
systems typically exhibit low power consumption and heavily rely on the
sensors and instruments integrated into their platforms. However, none of
the previously mentioned systems, incorporating low-cost COTS sensors,
have demonstrated the ability to provide turbidity values within the range
of 0 to 1000 NTU with sufficient precision and accuracy.
In Azman et al. [33], the authors proposed a sensor design based on the
nephelometric method. In this system, a photodetector positioned 90
degrees from the light source detects the scattered light intensity. A
microcontroller regulates the LED light source and the orthogonal light
detection receiver. While a calibration experiment validated the reliability
of the sensor for water quality monitoring, the results did not explicitly
confirm the sensor's capacity to measure samples exceeding 100 NTU.
Lambrou [36] developed a low-cost sensor design employing the ratio
method for online monitoring. This design closely resembles existing low-
cost COTS products, initially utilizing transmitted light detection. Notably,
an enhancement involving the addition of an orthogonal detection unit was
introduced to improve accuracy. Through calibration, the designed sensor
demonstrated a precision level of 0.1 NTU with ideal accuracy. However,
the authors did not provide detailed information on how the ±0.5 NTU
accuracy of the showcased sensor was achieved, and the detection range
was confined to 0–100 NTU.
To address the issues on the lack of range, sensitivity, accuracy,
repeatability, consistency, and calibration for fluctuating ambient
temperatures, Wang et al. developed a sensor that utilizes both
transmitted light and orthogonal (90 degrees) scattered light detection
principles. This sensor is 2-3 orders of magnitude lower in cost compared
to existing solutions and provides improved accuracy and robustness
compared to existing low-cost turbidity sensors [62].
28
Figure 2.2. Wang et al. [62] turbidity sensor design. (a) Dimensional layout of hardware.
The 20mm diameter hole is used for acrylic tube adhesion, and water flows through the
tube during measurements. (b) Circuit schematic design. Four pin connections are
required: 5V, 0V ground, and dual sensor output pins (VoutN and VoutD). (c) Overall
structural view of the sensor [69].
Turbidity Monitoring via Turbidity Sensor
Turbidity monitoring plays a critical role in flood prediction systems,
providing insights into changes in water quality and sediment
transport dynamics within river ecosystems. This chapter examines
the application of turbidity sensors in flood prediction systems on
rivers, focusing on three specific models: the SKU:SEN0189, TS
300B, and Atlas Scientific EZO-Turbidity sensors. These sensors
are designed to measure the turbidity of water, typically operating
on the principle of light scattering to quantify the presence of
suspended particles. Turbidity, expressed in Nephelometric
Turbidity Units (NTU), serves as an indicator of water clarity, with
29
higher turbidity values suggesting increased levels of suspended
solids and potential sediment transport during flood events [36],
[37],[38],[29].
30
boasts excellent durability and resilience to water ingress. Its
rugged construction enables sustained deployment in flood
prediction systems, ensuring dependable performance even under
adverse conditions.
Atlas Scientific EZO-Turbidity Sensor
The Atlas Scientific EZO-Turbidity Sensor is a compact and robust
device engineered specifically for measuring water turbidity,
functioning on the principle of light scattering. It offers a
customizable measurement range typically spanning from 0 to 1000
Nephelometric Turbidity Units (NTU), allowing for versatile
applications across various water bodies. Renowned for its high
precision, the EZO-Turbidity Sensor provides an accuracy of
approximately ±0.1 NTU within its specified range, ensuring reliable
water quality assessment even in challenging environmental
conditions. Its rugged construction enables sustained deployment
in flood prediction systems and other demanding water
environments, making it a dependable tool for continuous
monitoring applications [39].
Studies have validated the effectiveness of the Atlas Scientific
EZO-Turbidity Sensor in providing dependable turbidity
measurements crucial for environmental monitoring and research
applications [37],[38]. With its compact design, high accuracy, and
durability, this sensor serves as an indispensable component in
water quality assessment systems, facilitating comprehensive
assessments of turbidity levels in diverse water bodies. Its robust
performance underscores its importance in ensuring reliable data
collection for flood prediction systems and other critical
applications, contributing to enhanced understanding and
management of water resources.
Table 2.1. Turbidity Sensors used in Related Studies
31
Atlas Scientific EZO- No Yes <100 ms ±0.1 NTU Yes
Turbidity Sensor typical
32
Figure 2.3: Schematic cross-section through a pressure gauge formed from an Si
membrane and strain gauge doped into specific locations to detect the
mechanical deformation arising from the application of a pressure difference.
This Si element is sealed to the support with Pyrex, which is in turn mounted on
a base to provide support for the electrical connections. Extracted from [70].
Chau and Wise [43] and Spencer [45] have evaluated the performance of
both piezoresistive and capacitive pressure transducers. The theoretical
performances of miniature capacitive and piezoresistive pressure
transducers have been described in a review article on micromachined
pressure sensors presented by Eaton and Smith [44].
There are three types of noise in electrical circuits: Schottky effect (shot
noise), Johnson (thermal) noise, and 1/f noise. Schottky noise arises from
electric potential barriers at p-n junctions, while Johnson noise is due to
energy dissipation processes, and both have flat spectral densities up to
GHz frequencies. 1/f noise results from trapping centers near the device
surface. The change in the resistor bridge output voltage arising from a
pressure change p is given by:
33
where is the pressure sensitivity of the transducer and the applied
voltage. The is obtained by equating with the r.m.s. Johnson noise to
give
BMP180
34
user interfaces [15]. For high-altitude balloon experiments, the
sensor can trigger cut-down mechanisms based on specific
altitude, temperature, or pressure conditions (Youn, 2020).
Additionally, the BMP180 has been incorporated into healthcare
monitoring systems, working alongside other sensors to measure
vital signs and transmit data to mobile applications[16].
MPL3115A2
35
Table 2.2. Pressure Sensors used in Related Studies
Methodological Issues
The methodological procedures detailed in the reviewed literature provide
a comprehensive foundation for this study. For instance, Wang Cheng [15]
and M. Vasylenko & V. Dzhus [17] highlighted the integration of BMP280
sensors with microcontrollers like Arduino Uno for portable altitude
measurement systems, emphasizing features such as temperature
compensation, noise processing, and OLED display. H. Kusuma et al. [18]
further refined this approach by using statistical analysis and calibration
techniques, including one-way ANOVA and Tukey tests to enhance
sensor accuracy. Similarly, Lall et al. [21] explored the performance of
MPL3115A2 sensors under extreme conditions, providing insights into
their durability and accuracy in harsh environments.
Critical Evaluation
When evaluating the usefulness and reliability of the studies, certain
methodologies stand out. Wang Cheng [15] and M. Vasylenko & V. Dzhus
[17] offer highly reliable methods for integrating BMP280 sensors due to
their detailed focus on calibration and precision. H. Kusuma et al. [18] also
ranks high in reliability due to their comprehensive statistical validation.
Lall et al. [21], while valuable for understanding sensor performance in
extreme conditions, may be less directly applicable to the typical
operational environment of the ZCWD but provides critical insights into
sensor durability. Studies focusing on specific sensors like the A01NYUB
ultrasonic sensor [32] and the TS-300B turbidity sensor [5], [7] are
particularly useful for their practical insights into sensor performance and
integration.
36
Traditional water level monitoring systems at ZCWD face significant
limitations, including reliance on manual data collection and
rudimentary measuring tools. This method is labor-intensive, time-
consuming, and prone to human error, leading to inefficiencies and
inaccuracies[6],[12]. Moreover, manual monitoring requires
personnel to be present at the site, posing risks during adverse
weather conditions. The lack of automated sensors hampers real-
time decision-making, reducing the effectiveness of flood risk
mitigation[6],[12]. This highlights similar challenges in other
contexts, reinforcing the need for automated solutions [47],[48].
2. What are the specific advantages of using the ultrasonic , turbidity and
atmospheric pressure data modules for flood monitoring in remote
locations of the diversion weir?
The A01NYUB ultrasonic sensor offers precise water level
measurements with high-speed data acquisition, making it suitable
for real-time monitoring in remote locations. Its waterproof design
and resistance to harsh environmental conditions ensure reliability
[31]). The TS-300B turbidity sensor provides accurate readings of
water clarity, essential for assessing water quality and detecting
pollutants [6], [12]. The BMP180 atmospheric pressure sensor is
versatile and can measure temperature, pressure, and altitude,
contributing to comprehensive environmental monitoring [15], [16].
These sensors' integration addresses the limitations of traditional
systems by providing real-time, accurate data, enhancing flood
prediction and response capabilities.
3. How does the proposed addition of remote sensing and data logging
ensure reliable data transmission in the location of the diversion weir with
limited connectivity?
The proposed system leverages LoRa technology for reliable data
transmission over long distances, even in areas with limited
connectivity. LoRa modules, like the SX1278, offer low power
consumption and long-range communication, ensuring data can be
transmitted from remote monitoring sites to a central server without
significant loss or delay. Data logging using microcontrollers like
Arduino or Raspberry Pi ensures continuous data collection,
storage, and processing, even when connectivity is intermittent.
This setup enhances the system's robustness, allowing for
continuous monitoring and timely data transmission, which is
crucial for effective flood management in remote locations.
37
Summary and Conclusion
The solution devised to address challenges at the diversion weir of the
Pasonanca River in Zamboanga City focused on developing an efficient system
utilizing remote sensing technology to reduce labor requirements. The sensor
nodes were designed to operate independently and sustainably, optimizing
energy usage, wireless connectivity, and cost-effectiveness. Building on
methodologies outlined and summarized in prior studies of the ways of gathering
data these sensors, data collection relied on specialized sensor technologies
tailored for various parameters. Among all of the models, A01NYUB ultrasonic
sensor and SKU:SEN family turbidity sensor were identified as suitable for
outdoor surveillance applications and integrated into the device systems.
38
CHAPTER III
METHODOLOGY
Conceptual Framework
The system integrates LoRa technology for communication, ensuring low power
consumption. It focuses on the transmission aspect, utilizing separate nodes for
data transmission: one for the Bangwang Diversion weir house and one for the
main base. The system relies on two separate power supply sources: for the
Bangwang Diversion weir, the existing power supply available at the site,
leveraging the power line infrastructure for operation, is utilized by the main
transmitter system and the receiver inside the guard house. The remaining nodes
installed in the main base will be utilizing batteries as their power supplies, along
with adequate infrastructure to house the devices.
The design will consist of modules built for specific functions. The study will
develop microcontroller-based nodes positioned near the diversion weir and
outskirts of the river site. These nodes will be responsible for recording
parameters such as water level, pressure/temperature, and turbidity. While the
sensor node measures these parameters, the microcontroller will record the data,
facilitating wireless communication between the river site transmitter and the
monitoring station receiver. Two receiving stations will be installed on-site: one
inside the monitoring station near the diversion dam and the other at the base.
Although the long-term plan is for the ZCWD old reservoir to receive the data, the
39
system will initially be adjusted so that succeeding nodes can be placed, creating
additional receiving stations apart from those at the diversion weir. Each
receiving station will feature a wireless communication device and basic user
interface for monitoring purposes, alongside a specific module for data logging.
The system will be powered in two ways: the transmitter and receiver near the
dam’s location will be connected to an AC/DC adapter linked to the main line of
the diversion dam’s location, while other nodes will utilize a battery or power
bank module as the power supply. To conserve power, the node's sensing and
transmission activity, considered the active mode in this study, will follow a
predetermined schedule. Additionally, a time control feature will be integrated
into the system, ensuring that it only sends data for a specific amount of time to
minimize power consumption. Figure 3.0 depicts a diagram representing the
conceptual design of the system.
Theoretical Framework
Ultrasonic sensor
The ultrasonic system utilized in early flood monitoring relies on the fundamental
principle of measuring distance using ultrasonic pulses. The standard formula for
calculating distance based on time-of-flight principle is commonly employed:
This formula assumes a constant speed of sound (c) in air, which traditionally
depends on environmental factors such as temperature (T), humidity, and
pressure (P). However, in the context of the early flood monitoring system,
precise environmental corrections are essential to ensure accurate distance
measurements.
Rutsch et al. [65], Hassen [66], and A. M. Sabatini [67] discussed environmental
measurements considered to validate simulations based on the speed of sound
and atmospheric attenuation. The speed of sound was determined using a
combination of temperature, pressure, and humidity values. However, the
specific formula used for these calculations was not provided in the excerpts.
40
Despite the potential influence of environmental factors on the speed of sound,
the ultrasonic sensor system employed in the early flood monitoring project is
designed to compensate for these variations. By utilizing calibration techniques
and algorithms, the system effectively accounts for changes in temperature,
humidity, and pressure, ensuring consistent and accurate distance
measurements.
Methodology
This section summarizes the methodologies used to achieve each specific
objective of the project.
Specific Objectives Methodology
A. Sensor height sensitivity
A. The Implementation of the A01NYUB and test
JSN SR04T Ultrasonic Sensor Modules
B. Field testing accuracy
a) To implement the A01NYUB and reading
JSN SR04T ultrasonic sensor
modules and test their efficiency by
measuring:
● The calibration of the
sensor modules
through linear
measurement devices.
● The height sensitivity of
the A01NYUB and JSN
SR04T ultrasonic
sensor modules.
b) To verify the ultrasonic sensor
readings by comparing them to the
diversion weir’s gauge readings
41
using percent error checking
C. Comparison of Sensor
B. Comparison of the A01NYUB and JSN height sensitivity test
SR04T Ultrasonic Sensor Modules through error checking
E. Turbidity Sensor
C. To implement the TS-300B Turbidity sensor calibration using a serial
module and test its efficiency by the calibration of dilution of NTU
the sensor module through standardized (formazine)
turbidimeter
F. Voltage Reading
D. To compare the TS-300B Turbidity sensor comparison (TS-300B vs
module and standardized turbidimeters and its Eutech Instrument
efficiency using error checking Turbidimeter)
E. Standardized Atmospheric
E. To compare the BMP180 Pressure sensor pressure and temperature
module and tests its atmospheric pressure and versus Atmospheric pressure
temperature efficiency by measuring in terms of: and temperature sensor data
42
b) THe efficiency of the BMP180 pressure
sensor module in exposed versus enclosed
setups using paired t-test.
43
The primary power source for the transmitting and receiving
devices is the power line available at the diversion weir, eliminating
the need for battery power supplies. This setup explains the
absence of power supply circuits in the transmitter as shown in
Figure 3.3, which is relatively similar to the power supply of the
receiving station as well. The devices heavily rely on AC-DC
adapters during calibration and field testing. An alternative power
supply option is the USB connector available on each Arduino
NANO microcontroller, which is used for debugging or supervising
the device’s performance during various validation tests.
Figure 3.2: Power management of Ultrasonic sensor of the transmitter and receiver
44
#define TRIG 7
#define ECHO 6
The provided code snippet initializes the ultrasonic sensor's trigger
pin (TRIG) and echo pin (ECHO) by defining them as digital pins 6
and 5, respectively. These pins are commonly used to control and
receive signals from the ultrasonic sensor.
void setup() {
pinMode(TRIG, OUTPUT);
pinMode(ECHO, INPUT_PULLUP);
}
Within the setup function, the pinMode function is utilized to
configure the TRIG pin as an output and the ECHO pin as an input
with a pull-up resistor enabled. This setup ensures proper
communication between the Arduino board and the ultrasonic
sensor
void loop() {
digitalWrite(TRIG, LOW);
delayMicroseconds(2);
digitalWrite(TRIG, HIGH);
delayMicroseconds(20);
}
In the loop function, the code begins by sending a short LOW pulse
to the TRIG pin to trigger the ultrasonic sensor. After a brief delay,
a HIGH pulse is sent to the TRIG pin for a specified duration to
generate an ultrasonic pulse. Subsequently, the TRIG pin is set
back to LOW to conclude the pulse generation process.
digitalWrite(TRIG, LOW);
int distance, time = pulseIn(ECHO, HIGH,26000);
distance= 3 + time/58;
45
corresponds to the time taken for the ultrasonic signal to travel to
the object and back. This time value is stored in the 'time' variable.
Using the time value obtained from the pulseIn function, along with
the speed of sound in air (approximately 3 microseconds per
millimeter), the distance to the object is calculated. The distance
calculation considers the time taken for the ultrasonic signal to
travel to the object and back, and it is determined by dividing the
time by a conversion factor of 58, as per the typical calculation
method for ultrasonic sensors. This was obtained through the
calibration of the device to match the compared distance to the
value the ultrasonic sensor is outputting.
Serial.print("Time ");
Serial.print(time);
Serial.print(" | ");
Serial.print("Distance ");
Serial.print(distance);
Serial.println("cm");
delay(1000);
}
Finally, the calculated time and distance values are printed to the
serial monitor for observation and analysis. Each iteration of the
loop function includes a delay of 1000 milliseconds (1 second) to
control the sampling frequency of the ultrasonic sensor.
Turbidity Sensor
Turbidity Sensor Hardware Requirements
The system comprises two modules: the LoRa SX1278 and the TS-
300B turbidity sensor. The LoRa SX1278 module connects to
seven digital pins labeled LoRa_PINS, while the TS-300B module
connects to two pins labeled in blue, as shown in Figure 3.4. The
LoRa module uses pins 3.3, 13, 12, 11, 10, and 9, which are the
default pins specified by the library in use. Additionally, analog pin
A5 serves as the data pin for the turbidity sensor.
The primary power source for both the transmitting and receiving
devices is the power line available at the diversion weir, eliminating
the need for battery power supplies. This explains the absence of
power supply circuits in the transmitter, as illustrated in Figure 3.5,
and is similar to the power setup of the receiving station. The
46
devices rely on AC-DC adapters during calibration and field testing.
An alternative power source is the USB connector on each Arduino
NANO microcontroller, which is used for debugging or monitoring
the device’s performance during various validation tests.
Figure 3.3: Pin layouts of the Turbidity Sensor connected to the microcontroller
Figure 3.4: Power Management of the Turbidity sensor and microcontroller device
#include <SPI.h>
#define Turbidity A5
47
The SPI library is used for communication with devices over the
SPI bus. Turbidity is defined as an analog pin (A5) where the
turbidity sensor is connected.
//-----VARIABLES---//
float Turb_reading;
float Turb_turbidity;
float voltage;
String turbidity_text;
uint16_t turbRaw;
void setup() {
// INITIALIZATION //
Serial.begin(9600);
// PIN INITIALIZATION //
pinMode(Turbidity, INPUT);
}
The setup() function only initializes the serial monitor at a baud rate
of 9600 and sets the variable “Turbidity” as an INPUT variable.
void loop() {
Turb_reading = analogRead(Turbidity);
48
}
}
Finally, the reading and voltage values are printed to the serial
monitor using the Serial.print() function. This allows the user to
monitor the sensor's output voltage in real time for calibration and
analysis purposes.
49
Figure 3.5: Pin layouts of the BMP180 in the microcontroller
//-----LIBRARIES-----//
#include <Adafruit_BMP085.h>
50
//-----PINOUTS AND PRESETS-----//
Adafruit_BMP085 BMP;
//-----VARIABLES-----//
uint32_t BMP_pres;
float BMP_temp;
void setup() {
//-----PERIPHERAL INITIALIZATION-----//
Serial.begin(9600);
BMP.begin();
} // End of setup
void loop() {
//-----SENSOR READING-----//
BMP_temp = BMP.readTemperature(); // BMP Temperature
BMP_pres = BMP.readPressure(); // BMP Pressure
Within the loop function, the temperature and pressure values are
read from the BMP180 sensor using the BMP.readTemperature()
and BMP.readPressure() functions, respectively. These values are
then stored in the 'temp' and 'pressure' variables.
51
Serial.print("Temp: ");
Serial.print(BMP_temp); Serial.println("degC");
Serial.print("Pres:");
Serial.print(float(BMP_pres/100.000)); Serial.println("hPa");
Serial.println(".................................................");
Finally, the temperature and pressure values are printed to the
serial monitor using the Serial.print() and Serial.println() functions.
This allows the user to monitor the sensor readings in real-time for
calibration and comparison purposes during the study.
During the field test, pre-existing water level markers were used for
calibration. These markers were labeled based on their elevation above
sea level, ranging from 72 meters to 90 meters, with intervals of 10
centimeters. This corresponds to a range of 0 to 6 meters from the
positioned ultrasonic station. The correlation between different height
depths (in centimeters) and their respective measurements is shown in
Table 3.0 below. The test involved seven trials for each water level
marking in centimeters to determine the overall mean, standard deviation,
and coefficient of variation for each marking.
Standar
d Stan
measur Trial Trial Trial Trial Trial Trial Trial dard
ement 1 2 3 4 5 6 7 Mea Devi
(m) (cm) (cm) (cm) (cm) (cm) (cm) (cm) n ation CV
1
1.25
1.5
52
2
2.25
2.5
2.75
3
3.25
3.5
3.75
4
4.25
4.5
4.75
5
5.25
5.5
5.75
6
53
Comparison of Sensor height sensitivity test through percent
error checking
This test is designed to compare the height sensitivity of the A01NYUB
and JSN SR04T ultrasonic sensors by evaluating the percentage error of
each sensor at different height levels. Table 3.3 is structured to list
measurement points (in meters) and the corresponding percentage error
for each sensor. The verdict column provides a comparative assessment
based on the calculated errors.
1.25
1.5
2.25
2.5
2.75
54
3
3.25
3.5
3.75
55
Comparison of Field testing accuracy reading through error
checking
This test aims to compare the real-world performance of the A01NYUB
and JSN SR04T ultrasonic sensors by evaluating the percentage error in
their readings over multiple dates and times. Table 3.4 captures specific
dates and times, the measurement points or distances, and the
corresponding percentage error for each sensor. The verdict column
summarizes the comparative accuracy of the sensors. Tis to assess the
accuracy and reliability of the sensors in field conditions. By recording and
comparing the percentage error over time, researchers can determine
which sensor provides more accurate readings in practical, real-world
scenarios.
1.25
1.5
2.25
2.5
2.75
3.25
3.5
56
Validation of Turbidity Sensor Accuracy Against Turbidimeter
Readings
The validation of the turbidity sensor's accuracy involved two processes:
calibration through serial dilution of formazine (NTU) and field testing of
the sensor with comparisons to two standardized turbidimeters. The initial
calibration was done by creating different NTU (formazine solutions
diluting them in different milliliters of water and submerging the sensor in
different NTU solutions to get its voltage reading. The NTU solutions were
also compared to a standardized turbidimeter reading to determine the
accuracy of the dilution. For the field testing, comparisons were made with
two standardized turbidimeters (the Eutech instrument turbidity meter from
the university laboratory and the Hach 2100Q turbidimeter from the water
quality testing laboratory of the Zamboanga City Water District) and the
NTU reading from TS- 300B turbidity sensor. The sensor was then
deployed for field tests to gather water data samples under specific
weather conditions near the river diversion dam.
57
Given: 20 mL of 800 NTU and 20 mL of 100 NTU
Table 3.4: Serial Dilution of 800 NTU (formazine) to create different NTU levels
NTU Distilled H2O Outcome
15 mL of 800 NTU 5 mL
10 mL of 400 NTU 10 mL
10 mL of 100 NTU 10 mL
10 mL of 50 NTU 40 mL
Table 3.5: Voltage reading of Turbidity sensor from different NTU solutions and NTU
readings of Eutech Instrument from the diluted NTU solutions
NTU SOLUTION Voltage Reading from TS- NTU reading from Eutech
(Formazine) 300B Turbidity Sensor Instrument Turbidity Meter
10
50
100
200
400
600
58
800
Figure 3.7 will show the equation of the line between the relationship of the
Turbidity Level and the Voltage levels in millivolts. This is then compared and
adjusted in accordance with the results of the Standardized Eutech turbidimeter
for field testing.
Table 3.6: Field testing of turbidity level: Eutech Instrument Turbidimeter vs TS_300B
NTU vs True NTU reading
59
Eutech Turbidity Arduino’s
Date Sampl Instrument Sensor True NTU Percent Error
es Turbidity TS- 300B Reading
Meter NTU NTU
10
60
9
10
BMP10
BMP10
Baromet Thermome 8
8 Perce Perce
er ter Sensor
Date Time Sensor nt nt
Reading Reading Readin
Readin Error Error
(hPa) (degC) g
g (hPa)
(degC)
09:00
09:15
09:30
09:45
10:00
10:15
10:30
10:45
11:00
11:15
11:30
11:45
61
12:00
12:15
12:30
12:45
13:00
13:15
13:30
13:45
14:00
14:15
14:30
14:45
15:00
15:15
15:30
15:45
16:00
62
Error Plot for Pressure
1011.2
1011
1010.6
1010.4
1010.2
1010
1009.8
Time of Reading
Figure 3.8: Error plot of Standardized pressure data vs BMP108 pressure data
25
24
23
22
21
20
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
:0 :3 :0 :3 :0 :3 :0 :3 :0 :3 :0 :3 :0 :3 :0
09 09 10 10 11 11 12 12 13 13 14 14 15 15 16
Time of Reading
Figure 3.9: Error plot of Standardized temperature data vs BMP108 temperature data
63
Atmospheric Pressure and Temperature Difference of Enclosed
Case Versus Open Case
Studies have indicated that the internal atmospheric pressure and
temperature within the housing of the BMP180 module may impact the
accuracy of its readings. This test aims to assess this effect on the device
casing and determine if necessary modifications are needed for optimal
placement and display. Tables 3.9 and 3.10 below outline the data
collection format for atmospheric pressure and temperature readings,
along with reference data from standardized measurement tools for both
parameters.
Table 3.9: Data gathering for the atmospheric pressure of the 3 devices: Sensor A,
Sensor B, and Reference device
ATMOSPHERIC PRESSURE
SETUP A SETUP B
REFERENCE
EXPOSED ENCLOSED EXPOSED ENCLOSED
Table 3.10: Data gathering for the temperature of the 3 devices: Sensor A, Sensor B,
and Reference device
TEMPERATURE
64
SETUP A SETUP B
REFERENCE
EXPOSED ENCLOSED EXPOSED ENCLOSED
65
Figure 3.10: Pin layouts of the RTC and SD Card module integrated to the
system
Data Storage and Logging Software Requirements
#include <SD.h>
#include <virtuabotixRTC.h>
#define CS_LoRa 10
virtuabotixRTC myRTC(5, 6, 7);
File myFile;
This section sets the integers of various variable needed for the
program. previousMillis and interval is responsible for the systems
operation and sending of data in intervals. In this case, interval is
set to 900000 milliseconds or 15 minutes, which prompts the loop
function to operate to the set interval variable.
currentFileName[20] sets how may bits are used to name the file
were the data is being logged. StoreData() and
66
createNewFileForMonth() are functions used for data storage and
logging.
void setup() {
//-----PERIPHERAL INITIALIZATION-----//
Serial.begin(9600); // *TROUBLESHOOTING
SD.begin(CS_MicroSD);
myRTC.updateTime();
// Store the initial month
previousMonth = myRTC.month;
createNewFileForMonth();
}
void loop() {
storeData(currentFileName);
if (myRTC.month != previousMonth) {
createNewFileForMonth();
// Create a new file for the new month
previousMonth = myRTC.month;
// Update the previous month
}
67
determine this. The current month is then saved as
`previousMonth` for future reference.
if (myFile) {
Serial.print("Storing in memory...");
myFile.print( “all the necessary data to print out”);
myFile.close();
Serial.println("Data stored!");
} else {
Serial.println("Error opening file!");
}
}
This function calls out the SD card to open a file under the current
filename variable, and inserts all the necessary data using the
“variable”.print command. The serial prints include are for
debugging purposes.
void createNewFileForMonth() {
This function sets the file name format thru the use of snprintf ()
function. It is coded to format the file name as “__month no.__” + _
+ “__year__” via calling out the month and year data from the RTC
module. The function also handles error checking for multiple files
68
under the same file name. it is coded so that the system does not
make another file with the same file name. If the system detects
there is no initialized SD card module, it prints out “error creating
new file!”. This is helpful for debugging purposes.
69
Gantt Chart
The Gantt chart below outlines the progress report for the various tasks
involved in the project from January to July. The tasks are categorized into
four main areas: Functional Testing, Hardware and Software Design, Data
Gathering, and Field Testing. Each category includes the integration of
four modules: ANYUB01 ultrasonic sensor, TS-300B turbidity sensor,
BMP108 atmospheric pressure and temperature sensor, and the data
storage and logging modules.
70
Integration of
BMP103
atmospheric
pressure and
temperature
sensor
Integration of
data storage and
logging module
DATA GATHERING
Integration of
ANYUB01
ultrasonic sensor
Integration of
TS-300B
turbidity sensor
Integration of
BMP103
atmospheric
pressure and
temperature
sensor
Integration of
data storage and
logging module
FIELD TESTING
Integration of
ANYUB01
ultrasonic sensor
Integration of
TS-300B
turbidity sensor
Integration of
BMP103
atmospheric
pressure and
temperature
71
sensor
Integration of
data storage and
logging module
72
Integration of ANYUB01
ultrasonic sensor
Integration of TS-300B
turbidity sensor
Integration of BMP103
atmospheric pressure
and temperature sensor
Integration of data
storage and logging
module
FIELD TESTING
Integration of ANYUB01
ultrasonic sensor
Integration of TS-300B
turbidity sensor
Integration of BMP103
atmospheric pressure
and temperature sensor
Integration of data
storage and logging
module
73
CHAPTER IV
RESULTS AND DISCUSSION
74
checking Both JSN SR04T and A01NYUB JSN SR04T sensor's high
D. Comparison sensor's performance confirms its errors and limitations
of Field suitability for accurate water level highlight its impracticality
testing measurements, as it maintains for this purpose. These
accuracy consistent accuracy and reliability. results advocate for the
reading On the other hand, the JSN SR04T use of the A01NYUB
through error sensor's distance limitations render sensor in scenarios
checking it ineffective for scenarios requiring requiring accurate and
measurements beyond its effective dependable
range. measurements.
E. Turbidity Validation of Water Level Sensor The performance of the
Sensor Accuracy Against Turbidimeter TS-300B Turbidity sensor
calibration was quite low and poor
using a When the readings from the TS- due to its specification.
300B
serial dilution turbidity sensor were The sensor had high
of NTU compared with the readings from accuracy when NTU is
(formazine) the Eutech Instrument, 92.86% greater than 100 NTU,
was the total average percent error however, its accuracy
among the 34 water samples was poor below 100 NTU
shown in Table 4.4. Among the 10 since its ratio range was 0
F. Voltage water samples in Table 4.3,
Reading - 1000 NTU with ± 30.
113.86% was the percent error of This means it cannot
comparison the turbidity sensor when
(TS-300B vs compared accurately measure 50
with the Eutech NTU and below.
Eutech Instrument.
Instrument
Turbidimeter In addition, when the turbidity
) sensor was also compared with the
readings from the Hach 2100Q
turbidimeter, the result was 57. 80
percent error.
75
difference of employed to account for the wide significant difference in
enclosed case range percent errors in variances (as determined
versus open case temperature readings, but found no by the F-test) suggests
significant difference between the that the BMP180 sensor
readings. still provides reasonably
accurate temperature
measurements.
Atmospheric pressure and
temperature difference of Setup B shows a
enclosed case versus open case significant difference (p-
T-test was employed to compare value = 0.0160) between
the means of the two setups in exposed and enclosed
different condtions. Comparing conditions, indicating that
Setup A (Exposed) and Setup B temperature readings
(Exposed) to the reference differ significantly
temperature readings yields p- between these setups.
values of 0.0595 and 0.3163,
respectively, both exceed the Setup A shows no
significance level of 0.05 (0.0595 >significant difference in
0.05 and 0.3163 > 0.05). pressure readings
Comparing Setup A (Exposed) and compared to the
Setup B (Exposed) to Setup A reference, while Setup B
(Enclosed) and Setup Bdoes. Both setups exhibit
(Enclosed), respectively, yields p- significant differences
values of 0.7968 and 0.0160. between exposed and
enclosed conditions,
Comparing Setup A (Exposed) and indicating that the
Setup B (Exposed) to the reference enclosure affects
pressure readings yields p-values pressure readings.
of 0.3551 and 4.7945E-07,
respectively. Comparing Setup A
(Exposed) and Setup B (Exposed)
to Setup A (Enclosed) and Setup B
(Enclosed), respectively, yields p-
values of 0.0320 and 0.0303, both
exceeding the p-value (<0.05).
G. Data Storage Data Storage and Logging Test
and Logging Test
Throughout the monitoring period, The RTC DS1302, in
10 randomly selected data sets collaboration with the
comprising 100 data points were microSD card, performs
meticulously reviewed. Upon as expected, ensuring
comparison with the device's reliable data storage and
expected output, all data proved to logging capabilities
be accurate without any errors throughout the monitoring
detected. The RTC DS1302, process.
integrated with the microSD card,
76
operated seamlessly and reliably,
fulfilling its intended function of
data storage and logging.
Tria Stand
Standard Trial Trial Trial Trial Trial Trial
l1 ard
measure 2 3 4 5 6 7 Mean CV
(cm Devia
ment (m) (cm) (cm) (cm) (cm) (cm) (cm)
) tion
0.343
100 100. 100. 100. 100. 100.41 0.3422
1 100.5 100 64987
.2 8 1 9 4 42857 %
7
0.106
125 125. 125. 125. 125. 125. 125.51 0.0852
1.25 125.6 90449
.7 5 5 4 5 4 42857 %
7
0.214
150 150. 150. 150. 150. 150. 150.45 0.1428
1.5 150.3 91969
.5 3 4 9 5 3 71429 %
7
0.138
200. 200. 200. 199. 200. 200.02 0.0690
2 200 199.9 01311
1 1 2 8 1 85714 %
2
0.355
224 225. 225. 225. 225. 225. 225.25 0.1577
2.25 225.1 23298
.7 1 7 3 2 7 71429 %
9
0.234
250 250. 250. 250. 250. 250. 250.48 0.0934
2.5 250.5 01261
.3 4 3 9 3 7 57143 %
7
77
0.177
274 275. 275. 275. 274. 274.98 0.0645
2.75 275 275 28105
.7 1 1 2 8 57143 %
2
0.167
300 300. 300. 300. 300. 300. 300.41 0.0558
3 300.4 61634
.5 7 2 3 5 3 42857 %
2
0.127
324 325. 325. 325. 325.04 0.0391
3.25 325.1 325 325 24180
.8 2 1 1 28571 %
2
0.281
350 350. 350. 350. 350. 350. 350.47 0.0802
3.5 350.2 15408
.4 3 9 5 2 8 14286 %
4
0.292
375 375. 375. 375. 375. 375. 375.52 0.0780
3.75 375.6 77002
.8 7 2 9 3 2 85714 %
2
0.195
400 400. 400. 400. 400. 400. 400.41 0.0487
4 400.4 18001
.5 6 2 3 7 2 42857 %
5
0.242
425 425. 425. 425. 425. 425. 425.37 0.0571
4.25 425.8 99715
.6 4 2 2 2 2 14286 %
9
0.149
450 450. 450. 450. 450. 450. 450.27 0.0332
4.5 450.1 60264
.3 5 2 4 3 1 14286 %
8
0.302
475 475. 475. 475. 475. 475.38 0.0636
4.75 475.7 475 37157
.5 8 4 2 1 57143 %
8
0.179
500 500. 500. 500. 500. 500. 500.27 0.0360
5 500 94708
.2 4 3 1 4 5 14286 %
2
0.256
525 525. 525. 525. 525. 525. 525.57 0.0488
5.25 525.2 34797
.6 8 9 5 7 3 14286 %
8
0.095
550 550. 550. 550. 550. 550. 550.42 0.0173
5.5 550.4 11897
.4 5 6 4 3 4 85714 %
3
78
0.053
575 575. 575.04 0.0093
5.75 575.1 575 575 575 575 45224
.1 1 28571 %
8
0.281
600 600. 600. 600. 600. 600.34 0.0470
6 600.2 600 99966
.1 8 3 4 6 28571 %
2
As shown in Table 4.0, the means of the readings for each standard
measurement are very close to the actual standard measurements,
indicating the sensor is generally accurate. The mean readings are very
close to the standard measurements, indicating that the sensor does not
have a significant bias or systematic error. Furthermore, the standard
deviations are relatively small, suggesting that the sensor readings are
consistent across multiple trials. The small standard deviations across all
measurements suggest that the sensor's performance is stable and does
not fluctuate significantly from trial to trial.
The CV values across different standard measurements range from
0.0093% to 0.3422%. This indicates that the sensor exhibits a high degree
of precision, with variability in the sensor's readings being very low relative
to the mean values. This also shows that at lower standard measurements
(e.g., 1 m to 2 m), the CV values are slightly higher but still very low (<
0.35%), indicating good accuracy and precision, but as the standard
measurements increase (from 2.25 m to 6 m), the CV values generally
decrease, with the lowest CV being 0.0093% at 5.75 m, suggesting even
greater precision at higher measurements.
The sensor exhibits excellent sensitivity, accuracy, and precision in
measuring the standard values across multiple trials. The low coefficient of
variation across all standard measurements indicates that the sensor is
reliable and consistent. The small standard deviations and means that
closely match the standard measurements further affirm the sensor's
robustness and suitability for precise applications. This performance
suggests that the sensor is highly reliable for practical use where precise
measurements are critical.
79
Standard
Trial 1 Trial 2 Trial 3 Standard
measure Mean CV
(cm) (cm) (cm) Deviation
ment (m)
1 103.57 104.3 103.9 103.9233 0.365558933 0.3518%
80
2 0.0690% 0.320856% 0.2519%
The data presented in Table 4.2 compares the height sensitivity of two
sensors, A01NYUB and JSN SR04T, across various distances ranging
from 1 meter to 4 meters. The coefficient of variation (CV) is used as a
measure of the relative variability of the sensor readings.
81
Notably, at 3.25 meters, the JSN SR04T sensor shows a significant
increase in variability with a CV of 0.877579%, while the A01NYUB sensor
maintains a much lower CV of 0.0391%, resulting in the largest difference
of 0.8384%. At 3.5 meters, the CVs are 0.0802% for the A01NYUB sensor
and 0.289878% for the JSN SR04T sensor, with a difference of 0.2097%.
At 3.75 meters, the A01NYUB sensor has a CV of 0.0780% and the JSN
SR04T sensor 0.17322%, resulting in a difference of 0.0953%. Finally, at
4 meters, the A01NYUB sensor shows a CV of 0.0487%, while the JSN
SR04T sensor has a CV of 0.325095%, with a significant difference of
0.2764%.
82
2pm 74.24 75.1 74.67 -1%
3pm 74.24 74.8 74.52 -1%
4pm 74.22 74.8 74.51 -1%
5pm 74.22 74.1 74.16 0%
83
11am 74.1 72.1 73.1 3%
12pm 74.1 72.9 73.5 2%
1pm 74.1 73.6 73.85 1%
2pm 74.1 73.6 73.85 1%
3pm 74.1 72.3 73.2 2%
4pm 74.1 71.9 73 3%
5pm 74.1 72.1 73.1 3%
84
4pm 74.36 75.3 74.83 -1%
5pm 74.34 75.3 74.82 -1%
85
11am 74.18 75.1 74.64 -1%
12pm 74.18 75.1 74.64 -1%
1pm 74.18 75.1 74.64 -1%
2pm 74.18 73.9 74.04 0%
3pm 74.18 75.1 74.64 -1%
4pm 74.18 75.1 74.64 -1%
5pm 74.18 75.1 74.64 -1%
86
4pm 74.18 75.1 74.64 -1%
5pm 74.18 75.2 74.69 -1%
87
10am 74.2 74.1 74.15 0%
11am 74.2 75.1 74.65 -1%
12pm 74.2 75.2 74.7 -1%
1pm 74.2 75.2 74.7 -1%
2pm 74.2 75.3 74.75 -1%
3pm 74.2 75.1 74.65 -1%
4pm 74.2 75.1 74.65 -1%
5pm 74.2 75.1 74.65 -1%
88
3pm 74.2 75.1 74.65 -1%
4pm 74.2 75.1 74.65 -1%
5pm 74.2 75.1 74.65 -1%
Figure 4.0: Error plot of water level readings (Gauge Reading vs A01NYUB)
89
1pm 74.18 74.91 74.545 -1%
9am 0% -1% 1%
10am 0% -1% 1%
90
The data presented in Table 4.5 compares the field testing accuracy of
two sensors, A01NYUB and JSN SR04T, over a span of ten hours from 7
am to 4 pm. The percent error for each sensor was recorded hourly, with a
focus on determining the differences in accuracy between the two
sensors.
Overall, the data indicates that the performance of both sensors is highly
similar, with the only deviations observed at 9 am and 10 am, where the
A01NYUB sensor demonstrated slightly better accuracy. However, for the
majority of the testing period, both sensors performed identically,
suggesting that they are equally reliable for field measurements in these
conditions.
91
Table 4.6: Serial Dilution of 800 and 100 NTU (formazine) to create different NTU levels
Table 4.7 : Voltage reading of Turbidity sensor from different NTU solutions and NTU
readings of Eutech Instrument from the diluted NTU solutions
NTU SOLUTION Voltage Reading from TS- NTU Reading from Eutech
(Formazine) 300B Turbidity Sensor Instrument Turbidity Meter
92
Figure 4.1: Turbidity vs voltage level relationship, Turbidity graph
Figure 4.1 shows the equation of the line between the relationship of the NTU
Level and the Voltage levels in millivolts. The quadratic equation was used for
the calibration of the sensor.
Table 4.8: Field testing of turbidity level: Eutech Instrument Turbidimeter vs TS_300B
NTU vs True NTU reading
Eutech
Instrumen Turbidity Arduino’s
Date Samples t Sensor True NTU Absolute
Turbidity TS- 300B Reading Percent
Meter NTU Error
(ADZU)
NTU
93
1 22.5 Less than 7.21 67.96%
10
94
20 5.21 Less than 22.11 324.38%
10
Mean 92.86%
Absolute
Percent
Error:
95
The percent errors vary significantly, with some readings having very high
errors (e.g., 224.84% for a true NTU of 15.56) and others having much
lower errors (e.g., 1.05% for a true NTU of 139.45). The average percent
error when NTU is greater than 100 is 4.93%, indicating good accuracy for
high turbidity levels. The total average percent error when NTU is less
than 30 is 104.99%, indicating poor accuracy for low turbidity levels. The
TS-300B sensor shows high accuracy for higher turbidity levels but
struggles with lower turbidity levels, resulting in significant errors. This
suggests the sensor is more reliable for applications where turbidity is
expected to be high.
96
The percent errors for the Eutech Instrument vs. TS-300B range from
67.34% to 194.85%, with an average percent error of 113.864%. The
percent errors for the Hach 2100Q vs. TS-300B range from 37.80% to
88.57%, with an average percent error of 57.80%. The Hach 2100Q
shows better agreement with the TS-300B sensor readings than the
Eutech Instrument, as indicated by the lower average percent error. The
TS-300B sensor still shows significant errors, suggesting the need for a
new turbidity sensor since its data sheet showed that the sensitivity of the
sensor ranges from 0-1000 NTU with +- 30 NTU which means that the
sensor's readings can be off by up to ± 30 NTU.
09:30
1010.75 1011.7 -0.10% 27 27.8 -2.96%
5
97
09:45 1011 1011.9 -0.09% 27 27.1 -0.37%
12:15
1011 1011.3 -0.03% 25 25.6 -2.40%
98
2
12:30 - - - - - -
14:45
1010.25 1010.3 -0.01% 24.75 24.2 2.22%
4
99
1010.5 1010.4 0.01% 24 24 0.00%
15:00 2
F-statistics
Degrees of freedom (v1) 27
Degrees of freedom (v2) 27
f Statistic (f) 1.1228
Probability: P(F1.1228) 0.617 100
Probability: P(F1.1228) 0.383
As shown in Table 4.11 the degrees of freedom for the two samples are both 27, the calculated F-
Figures 4.2 and 4.3 visually illustrates the discrepancies between the
atmospheric pressure and temperature readings from each interval.
The error plot shows minimal deviation between the two sets of readings,
with no significant outliers. The BMP180 sensor provides consistent and
accurate atmospheric pressure readings, as evidenced by the low error
values in the plot.
101
Figure 4.3: Error plot of Temperature (Standardized vs BMP180)
Similar to the pressure error plot, the temperature error plot shows minor
discrepancies between the readings.The BMP180 sensor also performs
well in measuring temperature, with errors remaining small and within
acceptable limits.
102
Table 4.12: Data gathering for the temperature of the 3 devices: Sensor A, Sensor B,
and Reference device
TEMPERATURE
SETUP A SETUP B
REFERENCE
EXPOSED ENCLOSED EXPOSED ENCLOSED
22.3 22.8 23
22.4 22.9 24
103
Due to the varying and limited number of samples in each setup, a two-
tailed t-test was employed to assess if there is a significant difference
between the means of the temperature readings of the two setups. These
t-scores were then converted into p-values and compared to the
significance level of 0.05. Table 4.12 shows the corresponding p-values of
comparing the temperature readings between setups under different
conditions:
Comparison P-value
104
Table 4.14: Data gathering for the air pressure of the 3 devices: Sensor A, Sensor B,
and Reference device
PRESSURE
SETUP A SETUP B
REFERENCE
EXPOSED ENCLOSED EXPOSED ENCLOSED
105
4.15 shows the corresponding p-values of comparing the temperature readings
between setups under different conditions:
Comparison P-value
During a 5-day monitoring period, a total of 3194 data groups were stored
on the SD card. Careful inspection revealed no gaps between recorded
data, demonstrating continuous operation of the RTC module throughout
106
the monitoring period. The data storage and logging module was
programmed to record data every 2.5 minutes to ensure reliability and
accuracy. To verify this, 10 randomly selected datasets were compared
with corresponding data saved simultaneously shown in table 4.17. This
comparison utilized the GSM module as a secondary receiver to track
data packet transmission rates, confirming the satisfactory performance of
the data storage and logging modules.
107
211.00, 21
108
45.00 ,20 45.00 ,20
2 12/07/2024 12/07/2024
06:31:47,28.50, 98.00, 06:31:47,28.50, 98.00,
49.00 ,21 49.00 ,21
3 12/07/2024 12/07/2024
15:09:10,28.00, 98.00, 15:09:10,28.00, 98.00,
96.00 ,21 96.00 ,21
4 12/07/2024 12/07/2024
17:31:053,28.00, 98.00, 17:31:053,28.00, 98.00,
92.00 ,22 92.00 ,22
5 12/07/2024 12/07/2024
18:49:030,28.50, 98.00, 18:49:030,28.50, 98.00,
98.00 ,21 98.00 ,21
6 12/07/2024 12/07/2024
19:12:02,28.90, 98.00, 19:12:02,28.90, 98.00,
101.00 ,21 101.00 ,21
7 12/07/2024 12/07/2024
19:14:033,28.90, 98.00, 19:14:033,28.90, 98.00,
98.00 ,21 98.00 ,21
8 12/07/2024 12/07/2024
23:29:056,28.50, 98.00, 23:29:056,28.50, 98.00,
98.00 ,21 98.00 ,21
9 12/07/2024 12/07/2024
23:54:058,28.00, 98.00, 23:54:058,28.00, 98.00,
100.0020 100.0020
10 12/07/2024 12/07/2024
23:59:059,28.00, 98.00, 23:59:059,28.00, 98.00,
100.0022 100.0022
109
JULY 13, 2024 1 7/13/2024
05:37:59,27.60, 98.00, 7/13/2024 05:37:59,27.60,
105.00 ,21 98.00, 105.00 ,21
2 7/13/2024
08:10:43,28.00, 98.00, 7/13/2024 08:10:43,28.00,
98.00 ,20 98.00, 98.00 ,20
3 7/13/2024
09:33:21,28.50, 98.00, 7/13/2024 09:33:21,28.50,
105.00 ,22 98.00, 105.00 ,22
4 7/13/2024 7/13/2024
10:48:028,28.50, 98.00, 10:48:028,28.50, 98.00,
101.0022 101.0022
6 7/13/2024 7/13/2024
14:51:020,30.20, 95.00, 14:51:020,30.20, 95.00,
97.00 ,20 97.00 ,20
7 7/13/2024 7/13/2024
16:46:030,29.80, 92.00, 16:46:030,29.80, 92.00,
130.0022 130.0022
8 7/13/2024 7/13/2024
19:16:044,29.30, 96.00, 19:16:044,29.30, 96.00,
93.00 ,22 93.00 ,22
110
9 7/13/2024 7/13/2024
20:29:021,28.90, 98.00, 20:29:021,28.90, 98.00,
87.00 ,20 87.00 ,20
3 7/14/2024 7/14/2024
10:40:037,28.00, 98.00, 10:40:037,28.00, 98.00,
62.00 ,22 62.00 ,22
4 7/14/2024 7/14/2024
14:39:017,29.80, 95.00, 14:39:017,29.80, 95.00,
95.00 ,22 95.00 ,22
6 7/14/2024 7/14/2024
22:19:059,28.90, 98.00, 22:19:059,28.90, 98.00,
83.00 ,20 83.00 ,20
111
7 7/14/2024 7/14/2024
23:12:034,28.90, 98.00, 23:12:034,28.90, 98.00,
54.00 ,22 54.00 ,22
8 7/14/2024 7/14/2024
23:47:037,28.50, 98.00, 23:47:037,28.50, 98.00,
44.00 ,21 44.00 ,21
The recorded data showed no gaps, indicating that the RTC module
functioned continuously and reliably throughout the monitoring period. A
sample of 10 randomly selected datasets was compared with
corresponding data saved simultaneously by a secondary GSM module
receiver. This comparison verified that the data storage and logging
modules performed as expected, accurately capturing and recording the
data.The stored files followed a consistent pattern, recording the date,
time, temperature, humidity, analog input, and distance provided by
dummy sensor data modules. This format facilitated easy verification and
comparison of stored data. Therefore the integrated modules fit the
project’s specifications for data storage and logging.
112
CHAPTER V
CONCLUSION AND RECOMMENDATION
This study aimed to evaluate the reliability and accuracy of various sensors and
modules used for environmental monitoring, specifically focusing on ultrasonic
sensors, turbidity sensors, atmospheric pressure sensors, and data storage and
logging systems. The results of the tests conducted provide significant insights
into the performance and applicability of these sensors in real-world scenarios.
The ultrasonic sensor demonstrated high accuracy and precision in measuring
distances. Sensitivity tests showed that the sensor could measure distances from
1 meter to 6 meters with minimal deviation. For instance, at 1 meter, the mean
reading was approximately 100.4 cm with a standard deviation of 0.34 cm. Field
testing further validated the sensor's performance, with most errors falling within
±1%, demonstrating the sensor's reliability for practical applications requiring
precise distance measurements.
113
The turbidity sensor's performance was less satisfactory compared to the
ultrasonic sensor. The sensor showed high accuracy for measurements above
100 NTU but struggled with lower values, exhibiting an average percent error of
94.69% among 34 water samples. The comparison with the Hach 2100Q
turbidimeter further confirmed its limited accuracy at lower turbidity levels. These
findings indicate that the turbidity sensor is suitable for high-turbidity
environments but is unreliable for low-turbidity measurements. Atmospheric
pressure sensor tests included comparisons of standardized atmospheric
pressure and temperature readings with those from the sensor in both enclosed
and open cases. The sensor data showed consistent performance, aligning
closely with the standardized values, indicating the sensor's reliability in varying
environmental conditions.
The data storage and logging tests involved the RTC DS1302 module integrated
with a microSD card. Over the monitoring period, 10 randomly selected data sets
were reviewed, and all data points were accurate without errors. The system
proved to be reliable for long-term data logging and storage, essential for
continuous environmental monitoring. The study's findings have several
important implications for using sensors in environmental monitoring. The
ultrasonic sensor's high accuracy makes it ideal for applications requiring precise
distance measurements, such as water level monitoring in reservoirs or flood-
prone areas. The turbidity sensor's limited accuracy at low NTU values suggests
it should be used primarily in environments where high turbidity is expected, such
as industrial discharge monitoring or sediment-laden water bodies. The
atmospheric pressure sensor's consistent performance indicates its utility in
diverse environmental conditions, supporting its use in weather stations or
climate research. The reliability of the RTC DS1302 and microSD card
combination ensures that long-term environmental data can be accurately
recorded and stored, which is crucial for trend analysis and historical data
comparison.
In conclusion, the study successfully evaluated the reliability and accuracy of
different sensors used for environmental monitoring, providing valuable insights
into their performance in real-world applications. The findings underscore the
importance of selecting appropriate sensors based on specific use cases and
environmental conditions. By addressing the limitations identified, particularly
with the turbidity sensor, and exploring future research avenues, the utility of
these sensors can be further enhanced, contributing to more effective and
reliable environmental monitoring systems.
RECOMMENDATIONS
114
Based on the identified gaps and limitations in the reviewed studies, the following
recommendations are proposed to enhance the accuracy, reliability, and
efficiency of sensor-based environmental monitoring systems.
1. Enhanced Calibration of Turbidity Sensors: Investigate advanced
calibration techniques to improve sensor performance at lower NTU
levels, potentially incorporating machine learning algorithms to adjust
sensor readings dynamically based on environmental conditions.
Research and design efforts should focus on creating new turbidity sensor
models that use novel materials or technologies to achieve higher
precision.
115
altitude differences to maintain accuracy and document precise sensor
placements to correlate altitude differences with pressure variations.
Choose enclosure materials with minimal thermal expansion to prevent
deformation affecting sensor calibration and optimize ventilation to
balance environmental isolation with sufficient air exchange. Establish
clear guidelines for sensor installation and define enclosure specifications
to minimize variability in readings across different deployments. Use
materials with proven stability in temperature and pressure environments
and validate enclosure designs through testing to confirm their
effectiveness in buffering external pressure and temperature changes.
REFERENCES
[1] M. Ali, W. Wang, and H. Khan, "Wireless communication for IoT:
Technologies and applications," International Journal of Computer Applications,
vol. 162, no. 10, pp. 1-10, 2017.
[3] Y. Chen, H. Wu, and S. Zhang, "Ultrasonic sensors for water level monitoring:
A review," Sensors, vol. 20, no. 12, p. 3452, 2020.
116
[4] R. Gupta and S. Roy, "Long-range wireless communication technologies for
flood monitoring," Journal of Telecommunications, vol. 8, no. 1, pp. 34-40, 2020.
[6] V. Kumar and R. Singh, "Manual vs. automated water level monitoring
systems," Journal of Hydrology, vol. 3, no. 4, pp. 199-207, 2017.
[7] J. Lee, S. Park, and H. Kim, "Advances in turbidity sensors for water quality
monitoring," Water Science and Technology, vol. 83, no. 4, pp. 945-953, 2021.
[8] A. Patel, R. Joshi, and P. Shah, "Data logging systems in water level
monitoring: A comparative study," International Journal of Water Resources and
Environmental Engineering, vol. 11, no. 3, pp. 61-68, 2019.
[9] D. Silva, J. Garcia, and F. Martinez, "Ensuring data integrity in remote sensing
applications," *Remote Sensing*, vol. 13, no. 9, p. 1876, 2021.
[10] A. Smith and T. Brown, "Cost analysis of traditional water level monitoring
methods," *Water Economics*, vol. 9, no. 1, pp. 22-30, 2018.
[11] X. Wang, Z. Li, and Y. Zhou, "Atmospheric pressure sensors for flood
monitoring: Benefits and applications," *Sensors and Actuators A: Physical*, vol.
281, pp. 128-136, 2018.
[12] L. Wu, J. Zhang, and Q. Liu, "Enhancing flood prediction through automated
monitoring," Hydrological Processes, vol. 33, no. 7, pp. 1024-1035, 2019.
117
[19] M. Khaery, A. H. Pratama, P. Wipradnyana, and A. A. Gunawan, "Design of
air pressure measuring devices using a barometric pressure 280 (BMP280)
sensor based on Arduino Uno," 2020.
[25] T. De Groeve, "Space-based river monitoring for global flood early warning,"
Geomatics, Natural Hazards and Risk, vol. 1, no. 1, pp. 19-35, Mar. 2010.
Available: Taylor & Francis.
[26] J. E. Antonio-Lopez, J. J. Sanchez-Mondragon, P. LiKamWa, and D. A. May-
Arrioja, "Fiber-optic sensor for liquid level measurement," *Optics Letters*, vol.
36, no. 17, pp. 3425-3427, Sept. 2011.
[27] E. J. Band and F. I. Anyasi, "Design of an automatic water level controller
using mercury float switch," IOSR J. Electronics Commun. Eng., vol. 9, no. 2, pp.
16-21, 2014.
[28] M. S. M. Sabre, S. S. Abdullah, and A. Faruq, "Flood warning and monitoring
system utilizing internet of things technology," Kinetik: Game Technol., Inf. Syst.,
Comput. Network, Comput., Electron., Control, vol. 3, no. 3, pp. 287-296, 2019.
[29] B. N. Getu, M. Abdulkadir, and M. Tous, "Remote control of garden
plantation water pumps using Arduino and GSM mobile," Adv. Sci., Technol.
Eng. Syst. J., vol. 5, no. 4, pp. 499-504, 2020.
[30] G. Sai Susheel and B. Gururaj, "A study on employee attraction and
retention strategies with reference to Infosoft HR Services, Hyderabad," Proc.
IEEE Conf. [Conference Name], Hyderabad, India, 2019,pp. 340-343.
[31] R. Yelekar et al., "IoT-based smart water level monitoring," in Proc. 2023
IEEE 20th India Council International Conference (INDICON), 2023.
[32] DFRobot, "A01NYUB Waterproof Ultrasonic Sensor SKU: SEN0313,"
[Online].
118
[33] A. M. O. K. Ebrahim, M. A. K. L. E. Khalil, and M. S. M. Al-Sulaiman, "A
Compact High-Sensitivity Capacitive Pressure Sensor for Low-Pressure
Applications," *IEEE Sensors Journal*, vol. 18, no. 8, pp. 3240-3246, Aug. 2018.
doi: 10.1109/JSEN.2018.2826778.
[34] K. S. Kim, C. H. Ahn, S. J. Kim, and J. H. Kim, "Design and Implementation
of a Low-Cost Wireless Sensor Network for Smart Home Applications," Sensors,
vol. 19, no. 14, pp. 3039, Jul. 2019. doi: 10.3390/s19143039.
[35] S. S. Kumar, A. B. Prasad, and R. C. Rao, "A Novel Approach to Water
Quality Monitoring Using IoT," in Proc. 2016 IEEE 2nd International Conference
on Advances in Computing, Communications and Informatics (ICACCI), Jaipur,
India, 2016, pp. 242-247. doi: 10.1109/I2CACIS.2016.7885315.
[36] T. P. Lambrou, C. C. Anastasiou, C. G. Panayiotou, and M. M. Polycarpou,
"A low-cost sensor network for real-time monitoring and contamination detection
in drinking water distribution systems," IEEE Sensors Journal, vol. 14, no. 8, pp.
2765-2772, Aug. 2014.
[37] J. Droujko, P. Molnar, "Open-source, low-cost, in-situ turbidity sensor for
river network monitoring," Scientific Reports, vol. 12, no. 1, pp. 12345, Jul. 2022.
doi: 10.1038/s41598-022-14228-4.
[38] P. Molnár, J. Droujko, Marius G. Floriancic, "A Low-Cost Turbidity Sensor for
Deployment in Rivers," presented at EGU General Assembly 2021, Online, 2021.
[Online].
[39] A. Rymszewicz, John O'Sullivan, M. Bruen, J. Turner, Damian Lawler, E.
Conroy et al, "Measurement differences between turbidity instruments, and their
implications for suspended sediment concentration and load calculations: A
sensor inter-comparison study," Journal of Environmental Management, vol. 203,
pp. 947-957, Oct. 2017. doi: 10.1016/j.jenvman.2017.05.017.
[40] DFRobot, "Turbidity Sensor SKU: SEN0189," [Online].
[41] G. Wallis and D. I. Pomerantz, "Field assisted glass‐metal sealing," J. Appl.
Phys., vol. 40, no. 10, pp. 3946-3949, Oct. 1969.
[42] A. Cozma and B. Puers, "Characterization of the electrostatic bonding of
silicon and Pyrex glass," J. Micromech. Microeng., vol. 5, no. 2, pp. 98, Jun.
1995.
[43] H. Chau, K. Wise, "Noise due to Brownian motion in ultrasensitive solid-state
pressure sensors," IEEE Transactions on Electron Devices, vol. 34, no. 9, pp.
1234-1239, Sep. 1987. doi: 10.1109/T-ED.1987.23007.
[44] W. P. Eaton and J. H. Smith, "Micromachined pressure sensors: review and
recent developments," Smart Mater. Struct., vol. 6, no. 5, pp. 530, Oct. 1997.
[45] B. W. Spencer, "Statistical investigation of turbulent velocity and pressure
fields in a two-stream mixing layer," Ph.D. dissertation, Dept. of Aerospace Eng.,
University of Illinois at Urbana-Champaign, Urbana, IL, 1970.
119
[46] S. Bande and V. V. Shete, "Smart flood disaster prediction system using IoT
& neural networks," in Proc. 2017 International Conference on Smart
Technologies for Smart Nation (SmartTechCon), Bangalore, India, Aug. 2017,
pp. 189-194. IEEE.
[47] A. O’Connor, G. Tsafnat, Stephen B. Gilbert, Kristina Thayer, M. Wolfe,
"Moving toward the automation of the systematic review process: a summary of
discussions at the second meeting of International Collaboration for the
Automation of Systematic Reviews (ICASR)," Systematic Reviews, vol. 6, no. 1,
pp. 1-12, Dec. 2017. doi: 10.1186/s13643-017-0667-4.
[48] Gabriela C. Nunez‐Mir, B. Iannone, B. Pijanowski, N. Kong, S. Fei,
"Automated content analysis: addressing the big literature challenge in ecology
and evolution," Methods in Ecology and Evolution, vol. 7, no. 4, pp. 1-12, Apr.
2016. doi: 10.1111/2041-210X.12602.
[49] S. Pasika and S. Gandla, "Review on Internet of Things Based Water Level
Monitoring System," Materials Today: Proceedings, vol. 33, no. 1, pp. 1172-1174,
2020.
120
[57] A. Al-Omari, et al., "Evaluation of Water Monitoring Technologies for
Ecosystem Preservation," Journal of Hydrology, vol. 38, no. 3, pp. 123-135,
2008.
[62] X. Wang, Z. Li, and Y. Zhou, "Atmospheric pressure sensors for flood
monitoring: Benefits and applications," Sensors and Actuators A: Physical, vol.
281, pp. 128-136, 2018.
[69] X. Wang, Z. Li, and Y. Zhou, "Atmospheric pressure sensors for flood
monitoring: Benefits and applications," Sensors and Actuators A: Physical, vol.
281, pp. 128-136, 2018.
[70] D. Suski, A. M. Sabatini, and H. Hassen, "Environmental measurements for
validating simulations of sound speed and atmospheric attenuation," Journal of
Environmental Monitoring, vol. 5, no. 2, pp. 85-92, 2003.
121
122
APPENDIX A
SOFTWARE REQUIREMENTS
Arduino IDE
EASY EDA
123
APPENDIX B
HARDWARE REQUIREMENTS
Microcontrollers
Arduino Uno R3
Arduino Nano
124
Sensors
125
A01NYUB Ultrasonic Sensor
126
TS-300B Turbidity Sensor
127
Thermo Scientific Eutech TN-100 Waterproof Turbidimeter
128
Data
Logging
Modules
SD Card
Module
129
RTC Module
130
APPENDIX C
APPENDIX C
131
ARDUINO CODES
132