Professional Documents
Culture Documents
Implementing Water Level Sensors in Three-Level Calamity Siren Systems To Provide Early Flood Warning and Response
Implementing Water Level Sensors in Three-Level Calamity Siren Systems To Provide Early Flood Warning and Response
In partial fulfillment
By:
Litan, Vivien A.
Roallos, Gerald C.
Sabili, Freddirick S.
ICE 3103
INTRODUCTION
Floods rank among the most frequent and destructive natural disasters in the world,
resulting in a high death toll and extensive property destruction. Early warning systems are
essential for lessening the impact of floods in heavily populated areas where urbanization and
climate change have increased the vulnerability to these disasters. These systems must have
calamity sirens, which give residents in high-risk areas audible warnings. The efficiency of
response operations may be hampered by the fact that traditional calamity sirens frequently are
unable to deliver accurate and timely information regarding the extent of the approaching flood.
The need to upgrade conventional calamity siren systems with cutting-edge technology,
like water level sensors, is becoming more pressing to address this problem. In addition to
providing vital information that enables more precise and timely flood warnings, these sensors
The integration of water level sensors into three-tiered emergency alert systems is the
main objective of this study. The siren system uses a complex three-level strategy to discern
between flood conditions that are categorized as low, medium, and high and can be shown on an
indicator. To help affected communities make informed decisions about evacuation and other
preparedness measures, local authorities can employ a structured approach to deliver more
specialized and customized warnings. These warnings can take the form of modified voice-overs
Based on the intensity of the flooding, these calamity siren systems are made to deliver
real-time data that can set off the proper warnings and actions. These systems employed a
measurement technique that involved placing a water level sensor in high-risk areas for flooding.
Wired communication is used to send the sensor's collected data to a monitoring system. The
sensors' incoming data is continuously analyzed by the central monitoring system. The system
College of Engineering – Department of Electronics Engineering
uses the three levels to determine the severity of the flood when the water level rises above an
established limit. The integrated calamity siren system sounds based on the determined level of
flood severity. A less urgent warning might be sent out for minor flooding, and an urgent and
critical alert would be sent out for severe flooding. To alert locals and emergency responders, the
siren system sounds an audible alert or alarm and shows the detected level on the indicator.
II. OBJECTIVES
Main Objectives
● Main Objective
safety.
● Build Hardware
- To design and build robust and reliable hardware components, including water
level sensors, siren control units, and the usage of Arduino UNO for the
● Development of software
- To create and execute software solutions, such as evaluating codes with Tinkercad
level data.
● Testing (Data)
- To carry out thorough field testing to assess the water level sensors' accuracy and
● Evaluation of testing
- To evaluate the information gathered from field testing to determine the accuracy
● Recommendations
- Regular inspections for debris or pollution that might affect readings should be
- Use an alternative water level sensor that can withstand extreme humidity,
III. PROCEDURES
A. Materials
Bill of Materials
₱ 2, 675.30
Table 2. Bill of Materials
Table 2. Is a comprehensive list that includes every part, assembly, material, and component
B. Pinouts of Hardware
Figure 1. Shows the connections of Arduino Uno with the four hardware components
Arduino Water
Uno Level
Sensor
A0 S
5V Positive
(+)
GND Negative
(-)
Figure 1.a and Table 1. Arduino Uno and Water Level Sensor Connection
Figure 1.a and Table 1. shows that the A0 of the Arduino is connected to the S pin of the
Water Level Sensor, 5V is connected to the positive pin, and GND is connected to the
negative pin.
College of Engineering – Department of Electronics Engineering
Arduino LCD
Uno Indicator
GND GND
5V VCC
A5 SDA
A4 SCL
Figure 1.b and Table 2. Arduino Uno and LCD Indicator Connection
Figure 1.b and Table 2 shows that GND is connected to the same pin as the LDC
Indicator. VCC is connected to V5, while A5 and A4 are connected to SDA and SCL,
respectively.
Arduino Piezoelec
Uno tric
Buzzer
2 Positive
(+)
GND Negative
(-)
Figure 1.c and Table 3. Arduino Uno and LCD Indicator Connection
Figure 1.c and Table 3 shows GND connected to the positive pin of the Piezoelectric
GND GND
⁓11 RX
10 TX
Negative SPK 1
(-)
Figure 1.d and Table 4. Arduino Uno, DFP Mini Player Positive SPK 2
(+)
and Speaker Connection
Figure 1.d and Table 4. illustrates the connections of three hardware components. The
Arduino GND is interconnected with the GND of the Mini Player. Additionally, ⁓11 is
connected to the positive terminals of both the speaker and SPK 1 of the Mini Player. The
⁓3 Positive
(+)
Figure 1.e and Table 5 shows the connection of three LEDs with an Arduino Uno. All
the Anodes or positive terminals are connected to ⁓3 for Yellow, 4 for Orange, and ⁓5 for
C. Flowchart of Software
process. A flowchart for an Arduino program could show the conditions, loops, and order
When the water level rises, the water level sensor will begin to activate. Each
level's measurement range determines the signal that the sensor will deliver to the
indicators. The Liquid Crystal Display (LCD), which shows the measurement value in
millimeters together with the Alert Level, will be the initial indicator to turn on. The
light-emitting diode, which will turn on continually at each level, will be the next
indicator. The buzzer and speaker will be the final indicator. Even if the water level rises
The LCD will turn on and display "Alert Level 1" along with the current
measurement when the water level drops below 100 mm to 350 mm. As a result, the
buzzer and speaker will activate, and the yellow LED will turn on. Similarly, the
procedure will cause the orange LED to turn on for water levels between 351 and 549
mm. In addition to the current measurement, the LCD will simultaneously show "Alert
Level 2" and turn on the alarm and speaker. The red LED will finally turn on when the
water level reaches or exceeds 550 mm. The speaker and buzzer will then activate, and
"Alert Level 3" will appear on the LCD next to the measurement.
accompanying MP3 track, LED, and LCD message that are specific to it. When a sensor
Before introducing the main component of the study, which is a water level sensor, it is
crucial to ensure that the system is well-calibrated to limit errors and potential malfunctions. The
water level sensor must be positioned in the center with a gap between the diorama's ground and
the sensor itself. The diorama itself should be kept clean and dry to ensure precise and accurate
measurements.
level sensor, it is essential to prioritize ensuring its dry state initially. Subsequently, record the
outputs to document the history of each test, facilitating the detection of any changes over time.
Calibration through software is also crucial for efficiently identifying and adjusting the sensor's
The input of the system is water, and depending on the level it provides, the sensor will
distinguish its level. The output should trigger alarms in the area through indicators on the LCD
(Alert Level and Water Level Range), the Piezo Electric Buzzer (Frequency Tone Sound), and
Figure 3. Illustrates the configuration and placement of components for achieving initial
testing output.
● Place the water level sensor in a gap within the diorama's ground.
● Initial values will be displayed on the LCD indicator and detected by the piezo
Input:
● Water Level: It typically refers to the measurement or monitoring of the water level in a
specific environment, such as a tank, reservoir, river, or any other body of water.
Output:
● Light Indicator: LEDs or other light sources connected to the Arduino may flash or
change color to visually indicate the occurrence of the calamity (e.g., red for danger).
● Level Indicator (LCD): An LCD screen displays the current water level or a warning
● Sound Indicator (Buzzer): A buzzer emits an audible alarm or warning sound to draw
● Voice Indicator: This might involve a voice module or speaker connected to the Arduino
that plays pre-recorded or synthesized voice messages instructing people about necessary
actions to take in response to the calamity. For instance, it could say, "Danger: evacuate
immediately."
● Functionality Flow: When the water level sensor detects a critical water level, it triggers
the Arduino.
The Arduino processes this information and activates the output components accordingly.
- Light indicators flash, an LCD displays the water level or warning message, a buzzer
- The system integrates various indicators to effectively communicate the calamity and
Figure 4. Illustrates the schematic diagram of a calamity siren using a water level sensor.
Moreover, it shows the relationships, physical parts, and functions of a hardware system. Thus an
Arduino board is a microcontroller that includes pins for input and output that allow it to
communicate with different electronic parts. Additionally, the Arduino powers the circuit it
controls when it is connected to an external power source. The breadboard, on the other hand,
provides a grid of interconnected tie-points where components can be inserted and connected
without soldering, making it an ideal platform for prototyping and connecting multiple
components.
Three pins in the circuit are connected to the water level sensor. It first connects to the
Arduino's analog pin A0 so that it may transmit analog signals that indicate the water level. To
obtain the required working voltage, it is connected to the VCC (power supply) pin. Third, the
sensor provides the required reference for electrical signals by connecting to the circuit's ground
(GND). This sensor is essential to the circuit's functioning since it detects and measures the
The SCL (Serial Clock Line) and SDA (Serial Data Line) connections for the LCD are
connected to the A4 and A5 pins on the Arduino board, respectively. In order to supply operating
voltage, the LCD's VCC (power supply) pin also connects to the Arduino's 5V output. The
LCD's ground (GND) pin will be connected to the Arduino's ground (GND) pin to finish the
As a visual indicator, the three LEDs each indicate a distinct water level state. For each
LED to complete its electrical circuit, its cathode must be linked to ground (GND). Furthermore,
the anode, or positive terminal, of each LED is linked to a separate Arduino pin: pin 5 is for the
red LED, pin 4 is for the orange LED, and pin 3 is for the yellow LED. This setup enables the
Arduino to regulate each LED's brightness in accordance with the water level, with red
indicating a high level, orange a medium level, and yellow a low level. Thus, a 1k resistor was
Sound indication pin 2 of the Arduino is directly linked to the buzzer, which acts as the
control signal input. Furthermore, the buzzer has a full electrical circuit route that is required for
its operation since it is connected to the circuit's ground (GND). The buzzer emits sound in
By connecting the MP3 player module's VCC (power supply) and Ground (GND) pins to
the Arduino's corresponding power and ground pins, the DFPlayer Mini connects with the
Arduino. In addition, audio output is made possible by the pin on the DFPlayer Mini connecting
to the speaker. Additionally, pins 11 (TX) and 12 (RX) of the Arduino are connected to the RX
(receive) and TX (transmit) pins of the DFPlayer Mini, respectively, in order to initiate
interaction between the two components. With this configuration, the DFPlayer Mini and
Arduino may communicate data, allowing the Arduino to control the DFPlayer Mini by
triggering particular MP3 tracks that are saved on the SD card and correspond to various water
level conditions.
College of Engineering – Department of Electronics Engineering
B. Snippet of software
Figure 5
The image displays the #include directive used by programs to include external code
through header files or libraries. Each library serves a specific purpose that guarantees the
program's functionality. For instance, the inclusion of the Wire library via the Wire.h file enables
connected devices to interact over I2C, which is required for data exchange. The
facilitates interactions with I2C-capable LCD screens. The "mp3tf16p" library (located in
mp3tf16p.h) provides functions for efficient MP3 file playback management on the appropriate
Figure 6
The setup for a project using an Arduino, analog input, LEDs, a buzzer, an LCD display
with I2C capability, and an MP3 player is shown in this section of code. Important
configurations are set up by the code, which includes buzzerPin, redLedPin, orangeLedPin,
yellowLedPin, and analogInPin, which are constant integer variables that specify the
corresponding pins. Furthermore, an I2C-capable LCD display and an MP3 player are initialized
by the code, which sets particular parameters for each using the LiquidCrystal_I2C and MP3
Player libraries. These setups provide the foundation for the Arduino project's ability to read
analog sensor data, control LEDs, sound the buzzer, and communicate with the LCD and MP3
player.
1
College of Engineering – Department of Electronics Engineering
Figure 7
The setup() function defines the output pins for the buzzer, red, orange, and yellow LEDs
in this section of code, configuring the application. It initiates serial connectivity at a 9600 baud
rate for debugging reasons. Moreover, the setup function initializes and turns on the backlight of
an LCD display. The MP3 player is initialized using the mp3.initialize() function call. The loop()
analog sensor value from the designated pin (analogInPin) and displaying the result on the serial
monitor.
College of Engineering – Department of Electronics Engineering
Figure 8
The software assesses the sensorValue, which is presumed to represent signals from a
water level sensor, in this section of code. The code triggers the red LED, shows the water level
and a message indicating "Alert level 3" on the LCD, plays a certain MP3 track, sounds the
buzzer, and then, after a brief pause, resets the LED and buzzer. This process only occurs if
sensorValue is greater than or equal to 550. A distinct buzzer tone is produced, an orange LED is
activated, a "Alert level 2" message is displayed alongside the water level reading, another MP3
track is played, and after a time, the LED and buzzer are reset by the code if sensorValue is
between 351 and 549. These conditional actions suggest the code's involvement in a water level
monitoring system, responding to various water level thresholds with diverse visual, auditory,
Figure 9
This section of code controls what happens to the application in the event that
sensorValue falls between 100 and 350. Then, when a sensor value is between 100 and 274, it
plays a pre-selected MP3 track, sounds a distinctive buzzer, updates the LCD to show the water
level and a "Alert level 1" message, and, after a short delay, resets the LED and buzzer. This
conditional branch appears to handle a lower alert level situation in a water level monitoring
system by indicating a less critical state within the designated sensor value range by informative,
Figure 10
If the sensorValue does not match any of the above criteria, the software takes corrective
action in the final portion of the code. After a little delay, it switches off the red, orange, and
yellow LEDs, silences the buzzer, and refreshes the LCD display with the phrase "CHECKING
WATER LEVEL..." Additionally, the code invokes the MP3 module's serialPrintStatus function,
which is most likely intended to deliver diagnostic information or status updates pertaining to the
MP3 player's functionality. It appears that this other block handles situations where the water
level deviates from the designated ranges in order to guarantee a controlled and instructional
C. Testing
Tables III C.1 to C.5. Displays accurate but not precise data. The LCD indicator reads
236,235,234,and 235 mm, whereas the ruler measures only 100 mm. This suggests that the level
is precise within the testing parameters but lacks accuracy with respect to the indicator.
College of Engineering – Department of Electronics Engineering
Tables III C.5 to C.10 displays precise but inaccurate data. The LCD indicator reads
472,483,491,503,505 mm, whereas the ruler measures only 200 mm. This suggests that the level
is precise within the testing parameters but lacks accuracy with respect to the indicator.
College of Engineering – Department of Electronics Engineering
Tables III C.11 to C.15 displays precise but inaccurate data. The LCD indicator reads 550, 551,
634, 638, and 640 mm, whereas the ruler measures only 300 mm. This suggests that the level is
precise within the testing parameters but lacks accuracy with respect to the indicator.
In this study, three key parameters are under consideration: Accuracy, Precision, and
Calibration. Accuracy is determined by the water level range provided by the hardware
components, ensuring precise measurements. Precision is observed through the ruler. Calibration
can be achieved through regular drying of the sensor and adjusting to software ranges.
Calibration is a critical parameter in this study, serving as the key concept to achieve both
TESTING RESULTS
Attempt 3 234 mm
Attempt 4 224 mm
Attempt 5 235 mm
Attempt 3 491 mm
Attempt 4 503 mm
Attempt 5 505 mm
Attempt 3 634 mm
Attempt 4 638 mm
Attempt 5 640 mm
Table IV: Results of Testing
The table shows the results of the various tests that were performed on each level of the
water level sensor. It shows that for the first through fifth attempts, every value from low level
was included in its own range with its stated LED color of yellow and Buzzer sound strength.
Additionally, for the first through fifth attempts, the medium values were included in their own
range along with the specified LED color of orange and the intensity of the buzzer sound. Lastly,
for the first through fifth attempts, the values ranging from high were included in its own range
with its specified LED color of red and buzzer sound strength. These numbers merely
demonstrate the system's precision. Nevertheless, the accuracy of these figures was not
F. Observations
Four modules are included in the prototype to help with output detection and acquisition.
The Arduino Uno, which serves as the project's central processor unit, coordinates its
cooperative operation. After determining the water level in the tank, the Water Level Sensor
sends signals to the other three modules, which then trigger different actions at different levels.
The Piezoelectric Buzzer and LED Indicators both turn on at the same time when they receive a
signal. An orange LED with a medium-frequency tone, a red LED with a high-frequency tone,
and a yellow LED with a low-frequency tone indicate Alert Levels 1, 2, and 3. Simultaneously,
the height or measurement of the tank is shown by the LCD indicators in real-time. The Metal
Speaker sends voice alerts after a set amount of time. "The water level has reached 10 meters,"
announcing Alert Level 1. The message "The water level has reached 20 meters" is prompted by
Alert Level 2. "Please be advised to tune in to this system, radios, or televisions." It says, "The
water level has reached 30 meters. Please prepare your emergency bags and kits for possible
evacuation." This is the alert level three warning. In simple terms, the Piezoelectric Buzzer and
LED Indicators are triggered by the Water Level Sensor, and after a predetermined amount of
Moreover, the researchers utilized two breadboards for circuit connections when
implementing water level sensors in the three-level calamity siren system. This allowed for a
structured and organized setup of components, facilitating ease of assembly and maintenance.
efficient troubleshooting and streamlined development. In the observation phase, it was noted
that the water level sensor provided accurate measurements of the water levels inside the acrylic
box. In the observation phase, it was noted that the water level sensor provided accurate and
precise measurements of the water levels inside the acrylic box. However, discrepancies emerge
when comparing their measurements to those obtained using a ruler. It may introduce errors due
to variations in sensor placement and environmental conditions. While conducting tests on the
system, an unexpected issue arose with LED burnout. The LED, a crucial component in the
visual alert system, experienced malfunction during testing. This occurrence warrants a thorough
College of Engineering – Department of Electronics Engineering
examination of the circuit design and power distribution to identify the root cause of the LED
testing. This highlights the requirement for thorough testing and debugging processes to find and
fix possible problems prior to implementing the system in an actual environment. Factors
addressed to enhance the reliability and effectiveness of the Three-Level Calamity Siren
Systems. These observations provide valuable insights for refining the system's design and
functionality, ensuring its efficacy in providing early flood warnings and facilitating a prompt
response.
College of Engineering – Department of Electronics Engineering
IV. CONCLUSION
Floods pose significant dangers globally, causing high casualties and severe property
damage. Urbanization and climate change have heightened vulnerability in densely populated
areas. Early warning systems, crucial in reducing flood impacts, require calamity sirens for
audible alerts. However, traditional sirens often lack accuracy in conveying precise flood
information promptly, hindering response efficiency. Therefore, the researchers have developed a
system for flood disasters in a specific location using indicators, buzzers, and speakers. In
addition, researchers designed robust components and software for real-time monitoring and
analysis of sensor data to enable automatic flood alerts based on the present water level limits.
The process includes thorough tests to assess the accuracy and reliability of water level
sensors in flood conditions. After attempts of testing, the accuracy and consistency of water level
shown such as LED burnout issues, power distribution, and slight inaccurate reading of the water
level sensor. The researchers addressed this challenge by using redundant sensors for backup,
calibration, and two breadboards to increase the availability of space and allow for the expansion
of the components and connections for proper functioning. Overall, the implementation of this
system will serve as an early warning system to amplify the community's capacity to react to
flooding crises. It’s a proactive strategy that bridges community involvement with technological
APPENDIX A
Supplementary Materials
Figure 12. Fixed Range Value with Trial Code of Liquid Crystal Display (LCD)
College of Engineering – Department of Electronics Engineering
Figures 11.1, 11.2, 11.3, 12, 13 and 14 - shows the overall program on four
hardwares used in the study. To be able to execute this, using – website. Several trial and
errors are done to come up with a successful working program.
The abbreviations const int refers to a constant data type of a variable. Int denotes the
type of variable being declared. Void is used to indicate that a function has no return value.