Fire Security System Using Flame Sensor and Arduino

Arduino Projects

Volt Hello there, do you want to make your own Fire Security System Using Flame Sensor and Arduino. If so, you have come to the right destination. In this article, we will learn how the Flame Sensor works with Arduino. If you are new to this field and want to make such cool Arduino projects then click here. The security system we proposed for protection against fire consist of a Flame Sensor that detects fire.  Check more projects on Flame Sensor. Arduino is a microcontroller that uses ATmega328p IC for its functioning. There are many types of Arduino boards available but in this project, we use Arduino UNO. The system detects the fire and alerts the surrounding by turning on the LED and protect the place by turning on the dc fan. Just follow the simple steps as discussed below to make your own Fire Security System. Also, check Digitalize GSM-based forest fire alert system.

How does the Security System work?

The Fire Security System we made uses a flame sensor to detects fire and is controlled using Arduino. When the sensor detects fire then a dc fan connected to Arduino through a single channel Relay starts moving and blows air towards the fire. At the same time, LED goes on which is controlled by Arduino. To protect the LED from high voltage, we connect a 100-ohm resistor on its leg and then to the breadboard. You can also use a buzzer in place of an LED. In this way, the system works and alert about the fire. This project can be used in industries, offices, schools, and also in hotels. Make the circuit according to the circuit diagram given below and just upload the given Arduino code. Provide power to the Arduino so that the project starts working.

Components Required

  • Arduino UNO
  • Flame sensor
  • LED with 100-ohm Resistor
  • Single Channel Relay
  • Connecting Wires
  • Breadboard
  • USB Cable to connect Arduino UNO with the Computer
  • DC Fan
  • 9 Volt Battery
S.NoComponent RequiredQuantityBuy Link
1.Arduino UNO1
2.Arduino UNO Cable1
3.Flame Sensor1
4.DC Fan1
5.5 V Single Channel Relay1
7.220-ohm Resistor1
9.Jumper Wire40
11.9 Volt Battery1

Circuit Diagram of the Project

Arduino UNOFlame Sensor
D3 PinDO Pin
( +5V )+  ( Positive )
GNDG  ( Negative )
Arduino UNO5v Single Relay Module
D12 PinIN 1
( +5V ) VCC
Arduino UNO LED 220 Ohm Resistor
D8 PinTerminal 1 
GND Terminal 1
 Terminal 2Terminal 2
D8 PinTerminal 3 
Arduino UNODC Fan5v Single Relay Module
  Normally Open
VCC Common
 Terminal 1Normally Closed
GNDTerminal 2 

Connect the 5-volt pin and ground(GND) pin of the Arduino to the positive and negative rails of the breadboard. Attach Vin of the Arduino to the given pin of the Relay Module. Join the digital 3 pin of the Arduino to the D0 pin of the Flame sensor, digital 12 pin to the Relay Module, and digital 13 pin to the positive leg of the LED. Use a 100-ohm resistor to connect LED and negative rail on the breadboard. Join the positive wire of the DC fan to Relay as shown and the negative wire to the negative rail of the breadboard. Connect the ground of the Relay and Flame sensor to the negative rail on the breadboard and VCC of the Relay and Flame sensor to the positive rail on the breadboard. Once the circuit is completed upload the given code.

Code of the Project

NOTE –  Upload the code given below to the Arduino.

 int LED = 13;  
 int RELAY = 12;  
 int Flame_sensor = 3;  
 int Flame_detected;  
 void setup()  
  pinMode(LED, OUTPUT);  
  pinMode(RELAY, OUTPUT);  
   digitalWrite(RELAY, HIGH);  
  pinMode(Flame_sensor, INPUT);  
 void loop()  
  Flame_detected = digitalRead(Flame_sensor);  
  if (Flame_detected == 0)  
   Serial.println("Flame detected...! take action immediately.");  
   digitalWrite(LED, HIGH);  
    digitalWrite(RELAY, LOW);  
   Serial.println("No Flame detected. stay cool");  
   digitalWrite(LED, LOW);  
   digitalWrite(RELAY, HIGH);  

Final Project Looks Like

This is how the final project looks. Hope you understand the project well and if you are facing any errors do inform us in the comment section below. Please check out more Arduino Tutorials.


Spread the love, Share this post with friends

Leave a Reply

Your email address will not be published. Required fields are marked *