Free delivery on orders above Rs 900 | Single Delivery charges for Multiple Items


Your Cart is Empty

Back To Shop


Your Cart is Empty

Back To Shop

Interfacing Flame Sensor With Arduino – Fire Detection Alarm System.

The flame sensor discovers the presence of fire using the infrared flame flash technique. It has a sensitivity range between 4.3 to 4.4 micrometers. It is faster as well accurate than a fire or smoke detector.

Final Blog thumbnail

As we all know, architecture represents the accomplishment, wealth, and creativity of a city or a nation. No one wants to afford damage to them.
Fire accident is one of the major cause which harms not only buildings but also human beings.

The most usual causes of house fires are electrical distribution, lighting systems, cooking, Etc. In this technological era, the use of engineering is the best way to avoid such accidents.

Today, we will learn about an interesting project using Arduino for safety purposes using a flame sensor.

What is Flame Sensor?

The flame sensor detects the presence of fire or flame. It uses the infrared flame flash technique for working.

Flame Sensor Image 3

This explicit flame detector is consists of a Photo Transistor. It is often located at the front of the module in the form of a black LED. As a flame detection system works within the infrared spectral band, it ranges between 4.3 to 4.4 micrometers. This range covers the resonance frequency of Carbon Dioxide, which is generated by the burning of organic compound materials.

Greenhouse gases generated from the fire create radiation emission and special patterns in infrared emission. A flame sensor detects both of them. It is faster as well accurate than a fire or smoke detector.

If you are still reading this, it means you are surely interested in its interfacing with Arduino. So, let’s move forward with its working.

Interfacing diagram

As soon as the flame sensor detects fire or flame, it gets triggered. This sensing is based on parameters like humidity, temperature, smoke, Etc. These signals can be in the form of analog or digital. In this project, we have used the digital output of the flame sensor.

When Arduino receives this signal, it performs the resultant action in response. That may contain ringing of a buzzer or any fire suppression activity. Here we have connected a buzzer as a detection device.

As you can see here, the buzzer starts ringing when the flame sensor detects fire.

Connection diagram 1 1

The range of flame detection may vary up to 100 cm. In addition to this, fire suppression may act as a result of the detection system.


const int buzzerPin = 5;
const int flamePin = 2;
int Flame = HIGH;

void setup() 
  pinMode(buzzerPin, OUTPUT);
  pinMode(flamePin, INPUT);

void loop() 
  Flame = digitalRead(flamePin);
  if (Flame== LOW)
    Serial.println("Fire is Detected");
    digitalWrite(buzzerPin, HIGH);
    Serial.println("No Fire is Detected");
    digitalWrite(buzzerPin, LOW);


Interfacing the flame sensor with an Arduino is the simplest way to save lives by warning the occupants about emergence. It is very important to detect the disaster early to create a healthy environment and avoid destructions.

Additionally, it is cost-friendly to implement. We can perform further modifications by adding auto fire suppression techniques.

As you can see here, the buzzer starts ringing as the flame sensor detects fire.

Alarm system GIF 1

Final words

I hope you enjoyed reading this article. If you have any queries or thought about this, please let us know in the comment section.


Your Cart is Empty

Back To Shop

It will take just few seconds to claim 7% Discount, After Submitting check Email for Coupon code.