Arduino Flame Sensor Interfacing to Build Fire Alarm System

In this blog, we will see the interfacing of the flame sensor with Arduino. Flame sensor, smoke sensors, fire alarm system, etc. are the safety devices that can be used at various places in the offices, institutions, homes, industrial applications, etc. which protect us from fire accidents.

The flame sensor is easily available in the market as its result is good and due to cost efficiency. There are two types of flame sensors one having three pins and others having four pins respectively.

Description about Flame Sensor:

The flame sensor is an electronic device that is used to sense the fire or any light having a wavelength between 700nm to 1100nm. It is very sensitive to flame and gives an indication of the presence of flame or fire through an LED attached at its top. The flame sensor includes an IR sensor, LED for indication of the flame, potentiometer, operational amplifier circuit.

Working of Flame sensor:

Here, in this project we will use three pin flame detection sensor. Each pins have different task to perform. The three pins are listed below.

  1. 5v power supply (VCC)
  2. ground (GND)
  3. digital output pin (D0)
Flame Detection Sensor module
Pin out of Flame Detection Sensor module

It is very sensitive to flame and other lights.

Project Requirement:

  1. Arduino UNO —————— Amazon
  2. Flame Detection Sensor —- Amazon
  3. Male to female jumper wires—- Amazon
  4. Transistor (BC547) ———— Amazon
  5. Buzzer ————— Amazon
  6. Resistor (1Kohm)

Steps for the project:

Hardware building as given below

  • Step1: Connect VCC and GND to +5v and GND of the power supply (that can be connected to Arduino’s +5v).
  • Step2: D0 is connected to digital I/O in 11 of Arduino.
  • Step3: To indicate the detection of flame, a Buzzer is used.
  • Step4: The Buzzer circuit consists of 1Kohm resistor, an NPN transistor(BC547), 5v Buzzer. The Buzzer is driven through digital I/O 12 pin of Arduino UNO.
Arduino Flame Sensor Interfacing to Build Fire Alarm System
Project Fire Alarm System

Software requirement:

  • STEP 1: first download the Arduino IDE.
  • STEP 2: write a program for this project as given below.

Coding Time of How to measure distance using ultrasonic sensor

* Arduino Flame Sensor Interfacing to Build a Fire Alarm System
* Created by Achal  Kubade
const int flamepin=A2;
const int buzpin=11;
const int threshold=200;
int flamesensvalue=0;
void setup()
pinMode(flamepin, INPUT);
pinMode(buzpin, OUTPUT);
void loop()
int flamesensvalue=analogRead(flamepin);


After executing the above code, you will get an output as if you fire or burn by a matchstick or lighter then flame sensor sense the fire and the buzzer will start sounding.

Here, we will use an extra power supply to increase the audio output of the buzzer that helps us for giving better sound of the buzzer.

If you like this Article, We recommend you: How to measure distance using Ultrasonic HCSR04 & ESP8266 Node MCU

1 thought on “Arduino Flame Sensor Interfacing to Build Fire Alarm System”

  1. Pingback: Interface LCD With An Arduino - LCD Arduino Projects | PICTOROBO-Home Automation Brother's Technology

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.