✨ Use RCAPP and get 5% off 👇
Skip to content
Free Delivery on Orders Above Rs 999/- Pan-India
Cash on Delivery Available for Orders above Rs.500/- and Upto Rs 3000/-
SAVE more when you BUY more. Upto 30% Off on BULK PURCHASE
GST Invoices for Your Business
Dedicated Technical Support Team
Safely Delivering Genuine Products PAN INDIA

How to Build a Fire Alarm System Using Arduino

How to Build a Fire Alarm System Using Arduino
-
Written By - Robocraze -
📅 Updated on 25 Jun 2026
Summarize with AI
✅ Prompt copied

Summary

A fire alarm system is designed to detect the presence of flames or fire and immediately alert nearby people before the situation becomes dangerous. While commercial fire alarm systems can be complex, a basic fire detection system can be built using an Arduino board, a flame sensor, and a buzzer. This project is ideal for beginners because it introduces sensor interfacing, digital inputs, and alarm systems while solving a real-world safety problem. In this tutorial, you'll learn how to build a fire alarm Arduino India project from scratch, including the required components, circuit connections, Arduino code, testing procedure, and possible upgrades. By the end, you'll have a working fire alarm system that can detect flames and trigger an audible warning.

How to Build a Fire Alarm System Using Arduino

How the Fire Alarm System Works

The working principle is simple.

A flame sensor continuously monitors its surroundings for infrared light emitted by a flame.

When fire is detected:

  • The flame sensor sends a signal to Arduino.

  • Arduino processes the input.

  • A buzzer is activated.

  • The alarm continues until the flame is no longer detected.

This creates an immediate warning system that can alert users to potential fire hazards.

Components and Supplies

16x2 LCD (Blue) with I2C Interface - 16x2 blue LCD with I2C for Arduino, Raspberry Pi & IoT. -LCD Display -Robocraze16x2 LCD (Blue) with I2C Interface - 16x2 blue LCD with I2C for Arduino, Raspberry Pi & IoT. -LCD Display -Robocraze

16x2 LCD (Blue) with I2C Interface

16x2 LCD (Blue) with I2C Interface This is a great LCD module for different types of Arduino projects. If you want to display your results and see the output, the 16x2 LCD Display is the perfect component for DIY Arduino projects. The values shown on the 16x2...
Rs 174/-
Rs 174/-
Rs 345/-
Save Rs 171/-
128x48 Green LCD - 128x48 green graphic LCD for electronics projects & industrial use. -LCD Display -Robocraze

128x48 Green LCD

128x48 Green LCD This is a basic 128 character by 48 line display. Utilizes the extremely common HD44780 parallel interface chipset (datasheet). Interface code is freely available. You will need ~11 general I/O pins to interface to this LCD screen. Includes LED backlight. Package...
Rs 968/-
Rs 968/-
Rs 1,047/-
Save Rs 79/-
7 inch LCD Capacitive Touch Panel – 7" capacitive LCD with HDMI & USB for Raspberry Pi - LCD Display - Robocraze7 inch LCD Capacitive Touch Panel – 7" capacitive LCD with HDMI & USB for Raspberry Pi - LCD Display - Robocraze

7 inch LCD Capacitive Touch Panel with HDMI and USB Cable

7 inch LCD Capacitive Touch Panel with HDMI and USB Cable This 7 inch LCD Capacitive Touch Panel is not only for mini-PCs, but it can also work as a computer monitor just like any other general HDMI screen. This Display supports Raspbian, Ubuntu,...
Rs 3,879/-
Rs 3,879/-
Rs 5,123/-
Save Rs 1,244/-
Arduino Uno R3 Board compatibleArduino Uno R3 Board compatible

    Arduino Uno R3 Board compatible

    Arduino Uno R3 Compatible Board  The Arduino Uno R3 CH340G ATMEGA328P Development Board is more than just a microcontroller board; it's a gateway to endless possibilities in the world of electronics and programming. For hobbyists, students, and makers, it stands out as the best Arduino...
    Rs 347/-
    Rs 347/-
    Rs 699/-
    Save Rs 352/-
    Heat Flame Sensor - Detects fire & high temperatures for safety. -Flame Sensor -RobocrazeHeat Flame Sensor - Detects fire & high temperatures for safety. -Flame Sensor -Robocraze

      Heat Flame Sensor

      Heat Flame Sensor This tiny Flame sensor infrared receiver module ignition source detection module is Arduino compatible and can use to detect flame or wavelength of the light source within 760nm~1100nm also useful for Lighter flame detect at a distance of 80 cm.  Greater the flame, the farther the test...
      Rs 33/-
      Rs 33/-
      Rs 53/-
      Save Rs 20/-
      4Pin KY-026 Flame Sensor Module - Detects fire & flame sources for safety systems. -Flame Sensor -Robocraze4Pin KY-026 Flame Sensor Module - Detects fire & flame sources for safety systems. -Flame Sensor -Robocraze

        4Pin KY-026 Flame Sensor Module

        4Pin KY-026 Flame Sensor Module This 4Pin Flame Sensor Module is used to detect fire/flame sources or other light sources of the wavelength in the range of 760nm 1100 nm. It is based on the YG1006 sensor which is a high speed and high...
        Rs 34/-
        Rs 34/-
        Rs 54/-
        Save Rs 20/-

        Components Required

        To build this project, you'll need:

        Components Required

        Component Overview

        Arduino Uno

        Acts as the main controller and processes data from the flame sensor.

        Flame Sensor

        Detects infrared light emitted by flames.

        Buzzer

        Produces an audible alarm when fire is detected.

        Circuit Connections

        Flame Sensor Connections

        Connect the VCC pin of the Flame Sensor to the 5V pin of the Arduino Uno.

        Connect the GND pin of the Flame Sensor to the GND pin of the Arduino Uno.

        Connect the DO (Digital Output) pin of the Flame Sensor to Digital Pin D2 of the Arduino Uno.

        Buzzer Connections

        Connect the Positive (+) pin of the Buzzer to Digital Pin D8 of the Arduino Uno.

        Connect the Negative (-) pin of the Buzzer to the GND pin of the Arduino Uno.

        Connection Summary

        • Flame Sensor VCC → Arduino 5V

        • Flame Sensor GND → Arduino GND

        • Flame Sensor DO → Arduino D2

        • Buzzer Positive (+) → Arduino D8

        • Buzzer Negative (-) → Arduino GND

        Building the Circuit

        Step 1: Place the Components

        Place the Arduino Uno on your workspace.

        Keep the flame sensor and buzzer nearby for wiring.

        Step 2: Connect the Flame Sensor

        Connect the sensor's VCC and GND pins to the Arduino.

        Then connect the Digital Output pin to Arduino pin D2.

        Step 3: Connect the Buzzer

        Connect the positive terminal of the buzzer to pin D8.

        Connect the negative terminal to GND.

        Step 4: Verify the Wiring

        Double-check every connection before powering the system.

        Incorrect wiring can prevent the alarm from working properly.

        Arduino Code

        const int flameSensor = 2;
        const int buzzer = 8;
        
        void setup() {
        
          pinMode(flameSensor, INPUT);
          pinMode(buzzer, OUTPUT);
        
          digitalWrite(buzzer, LOW);
        
          Serial.begin(9600);
        }
        
        void loop() {
        
          int flameState = digitalRead(flameSensor);
        
          if(flameState == LOW) {
        
            digitalWrite(buzzer, HIGH);
        
            Serial.println("Fire Detected!");
        
          }
          else {
        
            digitalWrite(buzzer, LOW);
        
            Serial.println("No Fire");
          }
        
          delay(200);
        }
        

        Understanding the Code

        Step 1: Define Pins

        const int flameSensor = 2;
        const int buzzer = 8;
        

        These variables specify the pins used for the sensor and buzzer.

        Step 2: Configure Inputs and Outputs

        pinMode(flameSensor, INPUT);
        pinMode(buzzer, OUTPUT);
        

        The flame sensor acts as an input while the buzzer acts as an output.

        Step 3: Read Sensor Status

        int flameState = digitalRead(flameSensor);
        

        Arduino continuously checks whether the flame sensor has detected a flame.

        Step 4: Activate Alarm

        If a flame is detected:

        digitalWrite(buzzer, HIGH);
        

        The buzzer turns on and alerts nearby users.

        If no flame is detected, the buzzer remains off.

        Arduino Fire Alarm System

        Uploading the Code

        Step 1

        Open Arduino IDE.

        Step 2

        Create a new sketch and paste the code.

        Step 3

        Connect the Arduino Uno using a USB cable.

        Step 4

        Select:

        Tools → Board → Arduino Uno

        Step 5

        Select the correct COM Port.

        Step 6

        Click Upload.

        After successful uploading, the fire alarm system is ready for testing.

        Testing the Fire Alarm System

        Step 1: Open Serial Monitor

        Open the Serial Monitor and set the baud rate to 9600.

        You should see:

        No Fire
        

        displayed repeatedly.

        Step 2: Introduce a Flame Source

        Carefully bring a lighter or candle flame near the sensor.

        Do not allow the flame to touch the sensor directly.

        Step 3: Observe the Response

        When the flame is detected:

        • The buzzer should activate.

        • The Serial Monitor should display:

        Fire Detected!
        

        Step 4: Remove the Flame

        Move the flame away from the sensor.

        The alarm should stop automatically.

        Common Issues and Solutions

        Buzzer Does Not Sound

        Check:

        • Buzzer polarity

        • Pin connections

        • Arduino power supply

        Flame Not Detected

        Check:

        • Sensor orientation

        • Distance from flame

        • Sensor sensitivity adjustment

        Continuous Alarm

        Possible causes:

        • Incorrect sensor wiring

        • Sensitivity set too high

        • Strong infrared light sources nearby

        Most flame sensors include a small potentiometer that can be adjusted to improve sensitivity.

        Possible Upgrades

        Once the basic project is working, you can make it more advanced.

        Add an LCD Display

        Use a 16x2 LCD Display Module to show system status messages.

        Add SMS Alerts

        Combine the project with a GSM module to send emergency notifications.

        Add IoT Monitoring

        Using an ESP32 Development Board, the system can send alerts to a mobile app or cloud dashboard.

        Add Temperature Monitoring

        Combine the flame sensor with a temperature sensor module for more reliable fire detection.

        Add Emergency Lighting

        Automatically switch on warning LEDs when fire is detected.

        Applications of Fire Alarm Systems

        This project can be used for:

        • Educational demonstrations

        • Electronics safety projects

        • Laboratory monitoring

        • Small storage areas

        • DIY safety systems

        • Engineering mini projects

        Because it combines sensors, embedded programming, and real-world applications, it remains a popular fire alarm Arduino India project among students and hobbyists.

        Final Thoughts

        A fire alarm system is one of the most practical Arduino projects beginners can build. It demonstrates how sensors can be used to monitor environmental conditions and trigger immediate actions when specific events occur.

        The project is simple enough to complete in a few hours yet introduces important concepts such as sensor interfacing, digital signal processing, alarm systems, and safety automation.

        Once the basic version is working, additional features such as IoT connectivity, SMS notifications, and temperature monitoring can transform it into a much more capable safety solution.

        For students looking for a useful fire alarm Arduino India project that combines learning with real-world applications, this tutorial is an excellent starting point.

        Excerpt

        Learn how to build a fire alarm system using Arduino with a step-by-step guide covering flame or smoke sensors, circuit setup, coding, and real-time alert mechanisms.
        Prev Post
        Next Post

        Leave a comment

        Please note, comments need to be approved before they are published.

        Thanks for subscribing!

        This email has been registered!

        Shop the look

        Choose Options

        Edit Option
        Back In Stock Notification
        Compare
        Product SKU Description Collection Availability Product Type Other Details

        Choose Options

        this is just a warning
        Login
        Shopping Cart
        0 items
        FREE SHIPPING!
        ₹100 OFF
        ₹200 OFF
        ₹999
        ₹2500
        ₹4900
        WhatsApp Chat Chat