Flame Sensor Arduino Interfacing

Flame Sensor Arduino Interfacing
Flame Sensor is an electronic device which is used to sense the fire or any other light having wavelength between 700nm to 1100nm. It consists of either three or four pins both of them are compatible with all micro-controllers. It is sensitive to flame and gives the indication for the presence of the flame. It can be sued in homes, offices, industrial applications. Flame sensor along with its pi names are shown in the figure below.
1. Flame Sensor Pins
- Flame sensor has four pins with different individual function.
- Flame sensor pins are given in the figure shown below.
2. Flame Sensor Pins Description
- Each pin has different tasks to perform.
- Flame sensor pin descriptions are listed in the table shown in the figure given below.
3. Flame Sensor Working Principle
- Flame sensor is very sensitive to flame and other lights.
- Its analog output provides real time output voltage on the thermal resistance.
- When the temperatures reaches at the certain threshold the output high and low signal threshold adjustable via potentio-meter , Its the task of digital output.
4. Flame Sensor Circuit Diagram
- Flame sensor diagram is shown in the figure given below.
5. Apparatus Required for Flame Sensor Interfacing with Arduino
- Arduino UNO (Micro-controller)
- Flame Sensor
- Jumper wires
- Wero board
- Light or another flame sensor
6. Flame Sensor & Arduino Pin Connections
- Connections between Arduino and flame sensor pins are given in the table shown in the figure below.
7. Flame Sensor Arduino Interfacing - Wiring Diagram
- Before hardware interfacing, you can also test your result on Proteus.
- For Proteus simulation, you need to know about How to get Hex File from Arduino.
- I have shared a brief tutorial on Interfacing of Flame Sensor with Arduino in my previous tutorial.
- I have given a completely labeled wiring diagram for Flame Sensor Arduino Interfacing.
- You can test & verify your results by making the same wiring diagram.
- Wiring diagram for Flame Sensor Arduino Interfacing is shown in the figure given below.
8. Flame Sensor Interfacing with Arduino Source Code & Description
- If you haven't written Arduino code ever, you must go through How to Write Arduino Code.
- You just need to copy & to paste the complete source code given below in your Arduino software.
- And just upload the code onto your Arduino board in order to verify the results.
int led_pin = 13 ;// initializing the pin 13 as the led pin
int flame_sensor_pin = 2 ;// initializing pin 7 as the sensor output pin
int flame_pin = HIGH ; // state of sensor
void setup ( ) {
pinMode ( led_pin , OUTPUT ); // declaring led pin as output pin
pinMode ( flame_sensor_pin , INPUT ); // declaring sensor pin as input pin for Arduino
Serial.begin ( 9600 );// setting baud rate at 9600
}
void loop ( ) {
flame_pin = digitalRead ( flame_sensor_pin ) ; // reading from the sensor
if (flame_pin == LOW ) // applying condition
{
Serial.println ( " FLAME , FLAME , FLAME " ) ;
digitalWrite ( led_pin , HIGH ) ;// if state is high, then turn high the led
}
else
{
Serial.println ( " no flame " ) ;
digitalWrite ( led_pin , LOW ) ; // otherwise turn it low
}
}
- First of all I have defined the pins for led and the flame sensor.
- The I have printed the digital information on the Serial Monitor obtained from the flame sensor.
- The messages are displayed on the serial monitor via Serial Communication.
9. Flame Sensor Interfacing with Arduino
- The actual circuit diagram for flame sensor interfacing with Arduino.
10. Flame Sensor Applications
- Flame sensor has a lot of different applications.
- Some of them are given below.
×
![]()





































































