This repository is an archive of the LFPWS school project developed as a graduation requirement for Class IX at Junior High School (10 August 2025 – 15 October 2025).
The system reads water levels using a sensor and indicates flood potential through a Traffic Light LED module and LCD display, triggering a 120 dB siren/alarm during critical levels.
Central microcontroller that processes the sensor data and controls output components.
Submersible sensor that measures water height to detect rising floodwaters.
Tri-color indicator (Green for Aman/Safe, Yellow for Siaga/Warning, Red for Bahaya/Danger).
Displays real-time water percentage and status messages.
Sounds a 120 dB alarm when the water level reaches critical threshold.
Acts as an electronic switch to safely control the high-power 12V siren using low-voltage Arduino signals.
High-capacity rechargeable cells that supply stable power (using 3 cells in total).
Powers the Arduino (using a 2x cell series pack via DC Jack) and the external siren (using a 1x cell pack).
Used to connect the laptop to the Arduino.
Used for organizing and mounting components.
Used for securing components in place.
Used for securing wired connections.
Plastic container used as the device enclosure.
Male-to-female jumper wires for electrical connections.
- Water Level Sensor:
- Output pin -> Analog A0 on Arduino
- Traffic Light LED Module:
- Red LED -> Digital 4
- Yellow LED -> Digital 3
- Green LED -> Digital 2
- 16x2 LCD (I2C):
- SDA -> Analog A4
- SCL -> Analog A5
- Relay Module (for Siren):
- Control pin -> Digital 7
- COM -> Battery (+)
- NO -> Siren (+)
- Siren (-) -> Battery (-)
- Aman (Safe): Sensor value
< 341. Green LED stays on, LCD printsStatus: AMAN. - Siaga (Warning): Sensor value
341 - 649. Yellow LED blinks every 500ms, LCD printsStatus: SIAGA. - Bahaya (Danger): Sensor value
>= 650. Red LED blinks every 250ms, LCD printsStatus: BAHAYA, and the 12V siren runs for 3 seconds once.
- Open the lfpws.ino sketch in Arduino IDE.
- Install the
LiquidCrystal_I2CandWirelibraries if not present. - Select board Arduino Uno and your corresponding port.
- Upload code to your board.













