Arduino-Based Waste Canal and Flood Level Detector With SMS Notification
Arduino-Based Waste Canal and Flood Level Detector With SMS Notification
Notification
A Capstone Project
Lemery Colleges
Lemery, Batangas
In Partial Fulfillment
By:
Diaz, Xander C.
Malabanan Eljohn R.
Atienza, Clen P.
January 2021
1
Lemery Colleges
School of Computer Studies
Chapter I
Introduction
Project Context
exceeds the waterways. Flooding was known as the deadliest type of severe
heavy rainfall, continuous and non-stopped raining can result to flooding but lack
The former Secretary of the DPWH Mr. Rogelio Singson, mentioned the
three man-made reasons why do floods occur, these are clogged waterways, old
This shows lack of discipline and ignoring of responsibilities, human throw their
garbage to wherever place they want to throw it, those trashes can be the reason
to flooding once it obstruct to the waste-canal the water can’t irrigate, therefore
the water can’t flow to the canal and will start causing flood.
that can help the residents, officials and the barangay to overcome the problem
they encounter on their waste canal. The system will serve as early warning to
2
Lemery Colleges
School of Computer Studies
the residents nearby on the waste-canal. The system will automatically alarm the
official and nearby residents towards the issue by the help of the message sent.
The message contains information about the current status of the water that
needs quick response or action before it exceeds the level of water that can lead
to flooding.. The system will use Arduino Uno as its programming software and
Arduino C as its programming language. Aside from that it will use ultrasonic
sensor to detect the level of water on the waste-canal and if there’s trash obstruct
on the canal.
Batangas are mostly affected by flooding during rainy days. Even moderate
raining can cause flood to their place due to clogged canals. Their canals are
filled with are filled with trashes of the residents that’s why when rain comes the
water overflows and create flooding. The nearby residents on canal are those
who suffer from the effects and impact of the flood. And because of that reason
the nearby residents are forced to evacuate to the near evacuation center.
The study developed aims to give an efficient system that will help the
residents of Illustre Ave. Barangay Palanas, Lemery, Batangas for their flood
problems. The system will check the level of water. It can also detect if there’s an
obstruction to the waste canal. The SMS notification will serve as a reminder for
3
Lemery Colleges
School of Computer Studies
the nearby official and residents about current status of the level of water through
The ultrasonic sensor is useful for detecting objects within the preset
distance. The ultrasonic sensor is used to detect the level in the canal which
possibly leads to flood. The ultrasonic sensor will work once the water reaches
(datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM
USB connection, a power jack, an ICSP header and a reset button. Arduino is an
Level Detector with SMS Notification” aims to provide an effective and functional
system that can help the residents, barangay officials of the Barangay Palanas,
Lemery, Batangas to easily monitor the condition of the waste-canal along Illustre
Avenue.
4
Lemery Colleges
School of Computer Studies
2. What are the benefits of the developed system to the residents and
3.1 Functionality;
3.2 Effectiveness;
3.3 Maintainability
1. To provide a system that will help Illustre Ave. Barangay Palanas, Lemery,
nearby waste canal which was there main problem during rainy days due
to waste obstruction.
though early warning by the use of SMS notification that will be send to
5
Lemery Colleges
School of Computer Studies
nearby official of the barangay so that the official will make an urgent
action.
the level of water. To observed if the system maintains the effectivity and
Flood Level Detector with SMS Notification” which focused on how it can
clogged canals.
This study focuses mainly on a system that will solve the problems
of the barangay regarding the waste canal along the barangay which are
experiencing a flood due to obstruction of waste. The study will detect the
status of the waste canal if it was filled with trash, the level of water will
signify that the canal was obstructed by waste once it reached all the level
put to the system, and once that the water exceeded the highest level then
6
Lemery Colleges
School of Computer Studies
developed is just to alert the people about the level of the water. The
message will be sent to few persons in the barangay especially those only
in the nearby canal and also those Barangay Officials only. And regarding
Definition of Terms
The definition of the following terms was provided in this section to avoid
Environment) that runs on your computer, use to write and upload computer code
(https://www.collinsdictionary.com/dictionary/english/detector)
7
Lemery Colleges
School of Computer Studies
people to inform them about news, updates, emergencies, etc., that are relevant
Ultrasonic Sensor - Ultrasonic sensor is useful for detecting objects that are
some distance away from the robot. However, unlike the touch sensor, the
ultrasonic sensor does not rely on physical contact. The distance gives more
space in which to respond. Generally, the ultrasonic sensor is used for distances
(https://www.sciencedirect.com/topics/computer-science/ultrasonic-sensor)
Operational Definition
The following terms were defined by the proponents of the study in order
8
Lemery Colleges
School of Computer Studies
Maintainability – The ability of the developed system to test its longevity and
capacity.
9
Lemery Colleges
School of Computer Studies
Chapter II
which were conducted by the proponents of the study during a specific period.
Technical Background
measures the distance to an object using Sound waves. It works by sending out
a sound wave at ultrasonic frequency and waits for it to bounce back from the
object. Then, the time delay between the transmission of sound and receiving of
radiofrequency. Radar uses more power than ultrasonic and due to it, radars are
more expensive than ultrasonic, every sensor needs a processor that is powered
up by some kind of source. And usually, they are very complicated and require
10
Lemery Colleges
School of Computer Studies
made all this easy by making it simple through programming, erasing, and
born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping,
adapt to new needs and challenges, differentiating its offer from simple 8-bit
users to build them independently and eventually adapt them to their particular
needs. Pagatpat et al. (2017) mentioned to their study entitled “GSM & web-
based flood monitoring system” that the GSM module is used to transmit the data
Model 900 GSM/GPRS Modem Kit is used which is a physical add-on and
11
Lemery Colleges
School of Computer Studies
SMS and voice calls, and establish TCP communication over the broadly spread
USB cable and upload sketch with the Arduino IDE. Once the sketch has been
uploaded, you can disconnect the board from your computer and power it with an
external power supply. Then, the GSM library handles communication between
Arduino and the GSM shield. The majority of functions are for managing data,
Related Literature
Azid (2020) entitled “SMS based flood monitoring and early warning
System. With tools such as credit top-up and storing contact numbers will be
done via SMS. Updates on the height of the water level would be texted upon
users' request. The system provides timely information and alerts at-risk or
threatened populace and relevant authorities through SMS when the level of
water surpasses the user-defined threshold value. The Global System for Mobile
12
Lemery Colleges
School of Computer Studies
Communications (GSM) module is used for sending the mobile text messages
while the Arduino Uno microprocessor is used to read in the input from the
pressure sensor and then calculate the height of water. This simple yet effective
warning system is deemed to be one of the fastest and most effective methods of
considerable losses to the people who live around the river. To mitigate losses of
material due to flood disaster required an early warning system of flood disaster.
For that reason, it necessary to design a system that provides alerts to the
people before the flood disaster. And this paper describes the development of a
device for early detection system of flood disasters. This device consists of two
ultrasonic sensors as a water level detector, and a water flow sensor as water
medium.
13
Lemery Colleges
School of Computer Studies
In the study of Hashim et.al (2018) entitled “The Design and Implementation
of a Wireless Flood Monitoring System” states that Floods and excessive rainfall
are unavoidable phenomena that can cause massive loss of people's lives and
by Flood Monitoring Systems (FMS). There are many systems used in practice
these systems are very costly and sophisticated to be used and maintained. Most
from the lack of real-time monitoring of water levels which might lead to an
overflow in the canals and flash floods. Therefore, in this paper, we have
an Arduino microcontroller to measure the water level and identify the situation
using a GSM module or Bluetooth. Our system has been tested as an individual
unit and the results were very promising. It can monitor the water level accurately
14
Lemery Colleges
School of Computer Studies
and show visual alerts using a LED, also, it can send messages via Bluetooth
and Cellular networks. In the future, we are going to implement multiple units of
Communications (pp. 297-298). Natural disasters like flood are becoming more
and more devastating every year due to increase in rainfalls and other factors
induced by climate changes. The losses due to flood can be greatly minimized by
the effective early detection systems. The study shows how can they predict
flood through the early warning system and by communicating it to the target
user. The alerts are sent to the preconfigured email IDs and mobile numbers of
Research entitled Portable Water Level Monitoring System via SMS. The
Portable Water Level Monitoring System via SMS has different components that
battery charged by a solar panel so the project’s power source is always on the
go. SMS module was used for the SMS messaging wherein the messages
15
Lemery Colleges
School of Computer Studies
depend on the level of the water in the river. There is also a siren that will be
activated depending also on the level of the water. Sensors will be placed in line
with the water level. The casing was one of the most important components since
Yumang et.al (2017) states in their study “Real-time Flood Water Level
Monitoring System with SMS Notification” from the Institute of Electrical and
at high risk from flooding. Pandacan is one of the districts in the city of Manila,
located at the mouth of Pasig River which is prone to flooding. The purpose of
this project is to provide a standalone flood water level monitoring system for the
through the use of Arduino UNO, GSM shield, and sensors that will be powered
by a solar panel with the generator. The early warning device will be the three
LED that is mounted to a PVC pipe and then the system will send an SMS
notification to the people in the community. The functionality of the system was
tested by the simulation of flooding. The results provided that the objective of the
16
Lemery Colleges
School of Computer Studies
Related System
communities and homes. In very little time, floodwaters can cause irreparable
damage to treasured possessions and wreak havoc on lives. Remote water level
any like flooding situation, providing valuable time to protect assets, more
Sensor Networks (WSN) are widely used almost everywhere, including both
residential areas, and undeveloped areas near the river. Therefore, embedded
systems can reduce risks due to an increase in climate change in Rwanda with
17
Lemery Colleges
School of Computer Studies
systems. WSN technology has been applied in monitoring natural disasters for
the last couple of decades. This paper further proposes an innovative and
via a siren. It works by continuously recording and transmitting sensor data to the
main server. The server processes the data and then provides the warning so
that vulnerable residents can be notified before the floods come around their
include Arduino, solar panel, flood detector (sensor) with other wireless sensor
Based from Labo et.al (2016) from the International Journal of Engineering
environment, and loss of livelihood. These things lead to the development of the
18
Lemery Colleges
School of Computer Studies
device necessary for the protection of the community against flood hazards as it
allows people to get prepared with sufficient time. An alarm system was
developed to monitor the water level on Salon River that overflows during heavy
rains. The water level sensors were submerged in a canal of water to test the
created to enhance the monitoring of water level: the River Monitor Software and
the Water Level Monitor. The LED arrays emit light according to water level;
green for low, orange for medium, and red for high. A siren also alarms with
different intervals (30 seconds for low, 15 seconds for medium, and a continuous
alarm for high). Automatic emergency lighting was integrated into the design and
charges when ac power is supplied to the device. Levels were established based
on available data; low water level means awareness; medium water level means
preparedness and high water level means the immediate response is necessary.
wireless sensor networks (WSN) is one of the most challenging bustles handled
19
Lemery Colleges
School of Computer Studies
easily configurable, and scalable TWSN nodes to monitor, detect, and track
continuously monitor, detect and report the environment’s status to a control unit
using relative water level, thrust, and intensity of water as flood indicators, whose
values are gathered by sensors in the sensor field. The flood monitoring and
evasion system monitor and compute the status of floods and sends the flood
notification message to the base station of such zones for necessary action. The
system is composed of three major modules which are the sensor module,
and gives a well-timed alert of flood occurrences and controls the flood gate to
20
Lemery Colleges
School of Computer Studies
and Early Warning System using Ultrasonic Sensor”. The purpose of this study is
to develop a real-time flood monitoring and early warning system in the northern
Cagayan River. Ultrasonic sensing techniques have become mature and are
widely used in various fields of engineering and basic science. One advantage of
including solids, liquids, and gases. This study focuses only on the water level
detection and early warning system (via the website and/or SMS) that alerts
inquiry system is also included in this study to become more interactive wherein
individuals in the community could inquire about the actual water level and status
of the desired area or location affected by flood thru SMS keyword. The study
flood. The novelty of this work falls under the utilization of the Arduino, ultrasonic
21
Lemery Colleges
School of Computer Studies
important as per the needs for the safety and welfare of the community.
22
Lemery Colleges
School of Computer Studies
CHAPTER III
This chapter includes the discussion of the research design applied and
methodology employed in this study. The researchers make this chapter simple
Project Concept
The study proposed aims to give an efficient system that will help the
Barangay Palanas, Lemery Batangas along Illustre Avenue and its residents
regarding their problems on their street which is prone to flood. This problem has
led us to think and conduct a solution of waste-canal and flood level detector
wherein this will send a message to the residents and remind them of the current
The residents along the Illustre Avenue in Palanas, Lemery, Batangas are
the mostly affected from this phenomenon. The residents are those who suffers
from the effects and impact of the floods especially those residents that lives
nearby on the drainage system or what we called waste canal. The barangay and
mainly the residents are the beneficiary of this system conducted because the
researcher thinks of an alternative way that can reduce the doubt and can
The SMS Notification will remind the residents and the official about the
certain status of the waste canal and the status of the level of the water through
23
Lemery Colleges
School of Computer Studies
the SMS message that will be sent. Through the help of the SMS notification, the
nearby residents will be informed already so that their burden will be lessened, or
after being informed the nearby residents and nearby barangay officials can take
detector will serve as a tool to detect the level of water. The SMS Notification will
Requirements Analysis
Level Detector with SMS Notification” aims to provide an effective and functional
system that can help the residents, the barangay officials, and the Barangay to
easily observe and detect the condition of the waste canals along their Barangay.
Functional Requirements
This includes the functions required for the system. The system will
2. The system can check if there are trashes blocking the flow of flood.
Non-Functional Requirements
This will define the different ways in order for the researchers to measure
24
Lemery Colleges
School of Computer Studies
1. Functionality
updates.
2. Effectiveness
during flashfloods.
the drainage.
3. Reliability
a) The number wherein the SMS were sent was based on the
25
Lemery Colleges
School of Computer Studies
Screen.
This section describes in detail how the developers designed the system
Operational Framework
A. Knowledge
Requirements Design and
Arduino
Coding
Programming
Operational
B. Software “Arduino-
Framework
Requirements Based Waste
Developmen
Arduino Canal and
t model
Windows 7 Circuit Flood Level
C. Hardware Diagram Detector with
Requirements Flow chart SMS
Computer
o 4GB RAM Notification”
o Dual Core
Arduino
Ultrasonic Sensor
Infrared Sensor
LED Screen
GSM Module
26
Lemery Colleges
School of Computer Studies
Development Model
The developed system was designed to provide a system which will alert
the canal. The researchers used the developmental method of research. The
main goal is to describe the data and characteristics about what is being
process in a step by step flow. The subsequent phases in the development of the
system begin only if the previous step has been completed. The waterfall
approach does not move back to the previous phase to acknowledge changes.
The researchers learned a logical concept in this method and were directed in
accomplishing the system. The Waterfall Life Cycle Method provides an efficient
27
Lemery Colleges
School of Computer Studies
The phases that are shown in the figure are the steps involved in the
divided into separate phases which are: requirements, analysis, design, coding,
phase. Requirements are set of functions and constraints that the end user (who
will be using the system) expects from the system. The initial step that was done
by the researchers were researching and gathering of the data and appropriate
from the end user at the start of the software development phase. Then they
have identified parts to be incorporated which are the hardware, the software,
Analysis Phase
their validity, and the possibility of incorporating the requirements in the system
Design Phase
The researchers designed the interface and the flow of the system. In the
design phase, the researchers created the design of the system. The
researchers made the interface and the data flow diagram for the system to be
developed. This phase took several weeks since the details of the system will be
Coding Phase
After they have designed the system, they have started to create the
language as the scripting language for the developed software. This phase has
Testing Phase
ensure that the codes work. The system needs to be tested for the researchers
to know the needed improvements for the system. The program was tested for its
29
Lemery Colleges
School of Computer Studies
functionality and checked if all modules were working accordingly in every area,
and if the system as a whole performs as identified by the end users during the
The adviser of the proponents also tested the software for any possible
Maintenance Phase
This stage is the final step in the system development method. The
through a series of project testing. In this phase, the researchers provided the
gardeners’ user’s manual for the system. It was also decided to provide a short
the administrators.
Layout Diagram
30
Lemery Colleges
School of Computer Studies
31
Lemery Colleges
School of Computer Studies
Testing Procedure
The system had undergone testing procedure to ensure that the system
functions correctly produce the right output. Two levels of testing were
component of the system to see if the system works properly and if errors might
occur.
Table 1. AlphaTest
canal.
functions of the system. The tests conducted are important to check if all of the
canal.
Table 2 shows the tests conducted by the participants or the users of the
system. The tests conducted by the participants are important in order for them
33
Lemery Colleges
School of Computer Studies
and 18 barangay officials of Palanas, Lemery, Batangas who will benefit the
system.
Table 3
The researchers used the following formulas to come up with the finding of
the study.
the whole response. The process was dividing the frequency (sum of responses)
CHAPTER IV
34
Lemery Colleges
School of Computer Studies
system.
Table 4
The barangay officials are not aware if the canal has a high level of flood
The table above shows the perception of the respondents of the study
when it comes to the given statement. It shows that all of them agreed that the
barangay officials are not aware if the canal has a high level of flood
Table 5
The barangay officials are not aware if there are garbage blocking the waste
canal.
35
Lemery Colleges
School of Computer Studies
The table shows that 64 or 94% of the respondents of the study agreed
that the barangay officials are not aware if there are garbage blocking the waste
canal. The remaining 4 or 6% disagreed.
Table 6
Residents are affected by the flood due to blockage on the waste canal.
Yes 68 100%
No 0 0%
Total 68 100%
The data presented above shows that all of the respondents agreed that
residents are affected by the flood due to blockage on the waste canal.
Table 7
Residents are affected by the flood due to blockage on the waste canal.
Yes 67 99%
No 1 1%
Total 68 100%
The table above shows that 67 or 99% of the respondents of the study
agreed that residents are affected by the flood due to blockage on the waste
canal. the remaining part which is 1% disagreed with the given statement.
Table 8
The barangay officials can’t monitor the level of water inside the canal.
36
Lemery Colleges
School of Computer Studies
Yes 65 96%
No 3 4%
Total 68 100%
barangay officials can’t monitor the level of water inside the canal while the
Questionnaire Part II. Benefits of the developed system to the residents and
barangay officials
Table 9
The system can update the officials when it comes to the level of flood.
The table above shows the perception of the respondents of the study
when it comes to the given statement. It shows that all of them agreed that the
system can update the officials when it comes to the level of flood.
Table 10
The system can also provide updates when there are garbage blocking the
canal.
37
Lemery Colleges
School of Computer Studies
The table shows that 64 or 94% of the respondents of the study agreed
that the system can also provide updates when there are garbage blocking the
canal. The remaining 6% disagreed with the given statement.
Table 11
Yes 68 100%
No 0 0%
Total 68 100%
The data presented above shows that all of the respondents agreed that
Table 12
The barangay officials can monitor the level of water inside the canal.
Yes 67 99%
No 1 1%
Total 68 100%
The table above shows that 67 or 99% of the respondents of the study
agreed that the barangay officials can monitor the level of water inside the canal1
Table 13
38
Lemery Colleges
School of Computer Studies
The barangay officials can provide immediate rescue because of the updates of
the system.
Yes 65 96%
No 3 4%
Total 68 100%
barangay officials can provide immediate rescue because of the updates of the
system. The 3 or 4% part of the respondents disagreed with the given statement.
Table 14
The ultrasonic sensor detects the trash which blocks the flow of flood.
The table above shows the perception of the respondents of the study
when it comes to the given statement. It shows that all of them agreed that the
ultrasonic sensor detects the level of water and trash which blocks the flow of
flood.
Table 15
The table shows that 64 or 94% of the respondents of the study agreed
that the infrared sensor detects the underwater waste. The remaining part which
is 4 or 6% disagreed.
Table 16
The system can send SMS to the barangay officials for updates.
Yes 68 100%
No 0 0%
Total 68 100%
The data presented above shows that all of the respondents agreed that
the system can send SMS to the barangay officials for updates.
Table 17
Yes 67 99%
No 1 1%
Total 68 100%
40
Lemery Colleges
School of Computer Studies
The table 17 shows that 67 or 99% of the respondents of the study agreed
that the system displays the updates to the LCD Screen. 1% of the respondents
disagreed.
Table 18
Yes 65 96%
No 3 4%
Total 68 100%
Table 19
The table 19 shows the perception of the respondents of the study when it
comes to the given statement. It shows that all of them agreed the system allows
Table 20
Barangay officials can easily identify which area is experiencing high level of
floods.
41
Lemery Colleges
School of Computer Studies
The table shows that 64 or 94% of the respondents of the study agreed
that the system allows the barangay officials to be updated during flashfloods.
The remaining 4 or 6% of the respondents disagreed.
Table 21
Yes 68 100%
No 0 0%
Total 68 100%
The data presented above shows that all of the respondents agreed that
the system can easily detect if there is something blocking the drainage.
Table 22
The system can easily detect if there is something blocking the drainage.
Yes 68 100%
No 0 0%
Total 68 100%
The table above shows that all of the respondents of the study agreed that
the system can easily detect if there is something blocking the drainage.
Table 23
42
Lemery Colleges
School of Computer Studies
The system allows the barangay officials to have an immediate response in case
Yes 67 99%
No 1 1%
Total 68 100%
Table 24
The number wherein the SMS were sent were based on the number saved on
the codes.
The table above shows the perception of the respondents of the study
when it comes to the given statement. It shows that all of them agreed that the
number wherein the SMS were sent were based on the number saved on the
codes.
Table 25
The table shows that 64 or 94% of the respondents of the study agreed
that the system updates in a timely manner. The remaining 6% disagreed with
the statement.
Table 26
The levels of flood were categorized into three; high, medium, and low.
Yes 68 100%
No 0 0%
Total 68 100%
The data presented above shows that all of the respondents agreed that
the levels of flood were categorized into three; high, medium, and low.
Table 27
Yes 68 100%
No 0 0%
Total 68 100%
The table above shows that all of the respondents of the study agreed that
Table 28
The message sent to the officials were based on the monitoring of the system.
44
Lemery Colleges
School of Computer Studies
Yes 67 99%
No 1 1%
Total 68 100%
45
Lemery Colleges
School of Computer Studies
CHAPTER V
Summary //discuss
The proposed system entitled “Arduino-Based Waste Canal and Flood Level
system that can help the residents, the barangay officials, and the Barangay to
easily observe and detect the condition of the waste canals along their Barangay.
Findings
The researchers of the study noted the following findings of the study;
46
Lemery Colleges
School of Computer Studies
4. . All of the respondents agreed that the system can send SMS to the
barangay officials for updates. 67 or 99% of the respondents of the study
agreed that the system displays the updates to the LCD Screen.
5. In terms of effectiveness, all of them agreed the system allows the
agreed that the system allows the barangay officials to be updated during
flashfloods. All of the respondents of the study agreed that the system can
6. When it comes to reliability, all of them agreed that the number wherein
the SMS were sent were based on the number saved on the codes. All of
the respondents agreed that the levels of flood were categorized into
three; high, medium, and low. All of the respondents of the study agreed
that the updates of the system are displayed on the LCD screen.
Conclusions
Upon taking up the study, the researchers have concluded the following;
1. It was concluded that the barangay officials are not aware if the canal has
a high level of flood residents are affected by the flood due to blockage on
2. It was also concluded the system can update the officials when it comes to
the level of flood. Residents are updated regarding to the level of flood.
3. The study also concluded that the ultrasonic sensor detects the level of
water and trash which blocks the flow of flood. The system can send SMS
47
Lemery Colleges
School of Computer Studies
to the barangay officials for updates. The system allows the barangay
there is something blocking the drainage. The number wherein the SMS
were sent were based on the number saved on the codes. The levels of
flood were categorized into three; high, medium, and low. The updates of
Recommendations
1. The barangay must implement the system in order for them to promote
2. Residents must wait for the updates of the system for them to prepare
3. Future researchers can use the system as a reference for their future
studies.
48