How to Use Flame Sensor Module With Arduino
by Rachana Jain in Circuits > Arduino
12 Views, 0 Favorites, 0 Comments
How to Use Flame Sensor Module With Arduino
.jpg)
Fire accidents can cause serious damage, making early detection extremely important. Traditional methods like smoke detection or sensing temperature changes are commonly used, but they have their limitations. Smoke detectors might not work well in fires that produce little or no smoke, and temperature-based systems often react only after the heat has risen significantly—by then, it may be too late to act quickly.
A more reliable solution is detecting thermal radiation, which flames naturally emit. One of the simplest and most cost-effective ways to do this is by using a flame sensor.
In this tutorial, we'll build a basic fire detection system that senses the presence of a flame and triggers an alarm to alert people nearby.
Supplies
Arduino UNO R3
Flame sensor
LCD 16x2
Jumper Wires
Breadboard
Buzzer
USB Cable Type A to B
12V Supply Adapter
Flame Sensor Module Overview

- Operating Voltage: Works within 3.3V to 5V range, ensuring compatibility with most microcontrollers.
- Detection Angle: Offers a focused sensing field with an angle of approximately 60°.
- Detection Range: Capable of detecting flames from a distance of 1 to 2 meters.
- Adjustable Sensitivity: Includes a built-in potentiometer to easily adjust sensitivity levels.
- Compact Design: Small and lightweight, making it ideal for integration into various electronic projects.
Flame Sensor Module Pinout
The flame sensor module comes with 4 pins:
- VCC: Supplies power to the module.
- GND: Connects to the Arduino's ground.
- DO (Digital Output): Sends a HIGH or LOW signal based on flame detection.
- AO (Analog Output): Outputs an analog signal.
When Using Analog Output Pin of Flame Sensor

Connect the VCC and GND pins of the flame sensor to the VCC and GND pins of the Arduino. Then, connect the analog output pin (AO) of the flame sensor to the Arduino's analog input pin A0. An I2C LCD is used to display the analog readings and the status of the flame sensor. Connect the VCC and GND pins of the I2C LCD to the Arduino's VCC and GND. The SCL (clock) and SDA (data) pins of the LCD are connected to the Arduino’s SCL and SDA lines, which are shared with analog pins A5 and A4 respectively. Additionally, a buzzer is included in the circuit for alerts; its red wire is connected to digital pin 11 on the Arduino, while the black wire goes to GND.
Code
Upload the following code:
When Using Digital Output of Flame Sensor

The wiring remains the same as above, with one key difference: in this configuration, we are using the digital output pin of the flame sensor. Additionally, a buzzer has been added to the circuit. Its red wire is connected to pin 11 of the Arduino, and the black wire is connected to the GND pin.
Code
To learn more checkout this article: Flame Sensor Module with Arduino