Arduino-Based Fire Alert System with SMS Notification: A Complete Guide


In today’s world, safety is a top priority, especially when it comes to protecting your home from fire hazards. Fires can spread quickly, and detecting them at the earliest possible moment can make the difference between life and death. To address this, I created an Arduino-based Fire Alert System that can instantly send an SMS notification to the house owner when a fire is detected, allowing for timely action to ensure safety.

Required Components

To build this system, you’ll need the following components:

  1. Arduino Uno: The brain of the system, which processes the inputs and controls the outputs.

  2. Flame Sensor (or MQ-2 Smoke Sensor): This detects the presence of flames or smoke in the air, triggering the alert.

  3. GSM Module (SIM800L or SIM900A): This module allows the system to send SMS notifications via the GSM network.

  4. SIM Card: A SIM card with an active SMS service is needed for the GSM module to function.

  5. Buzzer: A sound-based alert mechanism to provide an immediate audio signal when a fire is detected.

  6. LED: A visual indicator to signal the presence of fire.

  7. Breadboard and Jumper Wires: To connect all the components.

  8. Power Supply: A stable power source to run the Arduino and GSM module.

Circuit Connections

  1. Flame Sensor (or MQ-2 Smoke Sensor):

    • VCC: Connect to 5V pin on Arduino.

    • GND: Connect to GND pin on Arduino.

    • DO (Digital Output): Connect to D2 pin on Arduino.

  2. GSM Module (SIM800L or SIM900A):

    • VCC: Connect to 5V pin on Arduino (or external power if required).

    • GND: Connect to GND pin on Arduino.

    • TX: Connect to D3 (Arduino RX) pin.

    • RX: Connect to D4 (Arduino TX) pin.

  3. Buzzer:

    • Positive pin: Connect to D5 pin on Arduino.

    • Negative pin: Connect to GND.

  4. LED:

    • Positive leg (anode): Connect to D6 pin on Arduino via a 220Ω resistor.

    • Negative leg (cathode): Connect to GND.

System Functionality

Once all the components are connected, the system works as follows:

  1. Flame Detection: The flame sensor continuously monitors for any signs of fire. When a fire is detected, the sensor’s output (DO pin) goes LOW, triggering the system to take action.

  2. Immediate Alerts: As soon as the fire is detected, the system activates the buzzer and the LED to signal the presence of fire. The LED will flash, and the buzzer will sound continuously, drawing attention to the emergency.

  3. SMS Notification: Simultaneously, the GSM module sends an SMS to the house owner’s phone number. The message reads, “🔥 ALERT! Fire detected in the building. Take immediate action!” This ensures that even if the owner is not present at home, they will be notified instantly and can take necessary actions, such as calling the fire department or evacuating the building.

  4. System Reset: Once the fire is gone, the system resets itself. The buzzer and LED turn off, and the system returns to its idle state, ready for the next detection.


Conclusion

This Arduino-based fire alert system is a simple yet effective way to protect your home from fire hazards. The system not only provides immediate visual and audio alerts but also sends an SMS to notify the house owner, ensuring that the fire is dealt with promptly. With the combination of easy-to-use components and reliable functionality, this project is a must-have for enhancing safety in any home.

If you're interested in building your own, this guide provides everything you need to get started, from the hardware to the code. Stay safe, and always be prepared!




0 Comments