In this tutorial, we learn how to interface a flame sensor with Arduino. How to detect fire/flames using a flame sensor.
A flame sensor is a device used to detect a fire. It is the most sensitive that can easily detect a fire and activate a fire alarm.
The detection range of a flame sensor is the wavelength in 760 nm to 1100 nm range of light source.
High temperatures can damage the sensor so we should place it at some distance. The detection distance is up to 100 cm.
Its output is a digital or analog signal. It can be used as a flame alarm or in the fire fighting robots.
It works by detecting infrared radiation emitted from the fire. The detector detects this radiation and converts it into the analog and digital signals for the microcontroller to process.
Note: Since the flame sensor works on the principle of infrared detection, any other infrared source like your remote control or any other source can trigger the sensor.

Must See:
Flame Sensor Specifications
- Board Size: 15.25 mm x 33 mm x 12.7 mm
- Operating voltage: 3.3 or 5V DC
- Range: 10 cm to 80 cm
- The angle of Detection: 60 degrees
- Weight: 20 gm.
Components List
- Arduino Board
- Flame Sensor
- Jumper Wires
- 1 x Breadboard
- Buzzer
Pin Connection of Flame Sensor
Flame Sensor | Arduino Pins |
---|---|
Vcc +5v | 5v |
GND | GND |
A0 | A0 |
D0 | D2 |
We will test the flame sensor using both pins digital and analog.
Circuit Diagram of Flame Sensor with Arduino Using Digital Pin

Code for Flame Sensor Using Digital Pin
Circuit Diagram of Flame Sensor with Arduino Using Analog Pin
