Flame Sensor Module for Arduino | Fire Detection & Flame Detection Projects
The Flame Sensor Module is a compact infrared-based sensor designed to detect the presence of a flame or strong infrared radiation. It can be connected to Arduino and other microcontroller boards to create fire detection, flame alarm, safety and robotics projects.
With both digital and analog outputs, the module can be used for simple flame detection as well as projects where you want to monitor the sensor’s output level.
1. What is it?
A Flame Sensor Module is an electronic sensor that detects infrared radiation typically emitted by flames.
The module provides an easy way to add flame detection to Arduino and other microcontroller projects.
It includes a sensor, signal-processing circuitry, adjustable sensitivity and output pins that make it simple to connect to a development board.
Important: This module is intended for educational, experimental and prototype projects. It should not be treated as a certified fire alarm or life-safety device.
2. What can you build with it?
Use the flame sensor to build projects such as:
- 🔥 Flame detection systems
- 🚨 Fire alarm prototypes
- 🤖 Fire-fighting robots
- 🚒 Fire detection robots
- 🔔 Flame-triggered alarms
- 🏠 Basic fire monitoring prototypes
- 💡 Flame-activated LED systems
- 🤖 Autonomous robotics projects
- 📊 Arduino sensor-monitoring projects
- 🎓 School and college STEM projects
You can combine it with a buzzer, LEDs, LCD display, relay module, motors and other sensors to create more advanced projects.
3. Who is it for?
The Flame Sensor Module is suitable for:
Beginners
Learn how sensors communicate with a microcontroller.
Students
Build electronics, robotics and STEM projects.
Robotics learners
Use flame detection as an input for autonomous robots.
Arduino enthusiasts
Experiment with digital and analog sensor readings.
Teachers & trainers
Useful for classroom demonstrations and robotics workshops.
Makers
Add flame detection to experimental automation projects.
4. How does it work?
The sensor detects infrared radiation produced by a flame.
When a flame is detected, the module’s sensor output changes. The onboard circuit processes this signal and provides outputs that can be read by a microcontroller.
Two ways to use the module:
Digital Output (DO)
Provides a HIGH/LOW-style signal when the detected infrared level crosses the module’s adjustable threshold.
Analog Output (AO)
Provides a variable voltage signal that can be read using an Arduino analog input.
The onboard potentiometer can be adjusted to change the digital detection threshold.
Basic working principle:
Flame → Infrared Radiation → Sensor → Signal Processing → Arduino → Action
For example:
Flame detected → Arduino receives signal → Buzzer turns ON
5. Technical Specifications
| Specification | Details |
|---|---|
| Sensor Type | Infrared flame sensor |
| Detection | Infrared radiation from flame |
| Operating Voltage | 3.3V–5V |
| Interface | Analog + Digital |
| Analog Output | AO |
| Digital Output | DO |
| Sensitivity Adjustment | Onboard potentiometer |
| Indicator | Power / detection LED* |
| Module Type | Arduino-compatible sensor module |
| Connection | 4-pin interface |
| Suitable For | Arduino, robotics & microcontroller projects |
*Indicator configuration can vary slightly between module versions.
Note: Detection range and sensitivity depend on flame size, lighting conditions, sensor orientation and the specific module version.
6. Pinout
Most versions of this module use a 4-pin interface:
| Pin | Function |
|---|---|
| VCC | Power supply |
| GND | Ground |
| DO | Digital output |
| AO | Analog output |
Digital Output
DO changes state when the detected infrared level crosses the sensitivity threshold set using the onboard potentiometer.
Analog Output
AO provides a variable signal that can be read through an Arduino analog input.
7. Wiring Diagram
Flame Sensor → Arduino Uno
| Flame Sensor | Arduino Uno |
|---|---|
| VCC | 5V |
| GND | GND |
| DO | D2 |
| AO | A0 |
Simple digital detection
Flame Sensor DO → Arduino D2
The Arduino can then monitor D2 and activate a buzzer or LED when the sensor detects a flame.
Analog monitoring
Flame Sensor AO → Arduino A0
This allows your program to read the sensor’s analog output using analogRead().
8. Example Code
Digital Flame Detection with Buzzer
const int flameSensor = 2;
const int buzzer = 8;
void setup() {
pinMode(flameSensor, INPUT);
pinMode(buzzer, OUTPUT);
Serial.begin(9600);
}
void loop() {
int flameState = digitalRead(flameSensor);
if (flameState == LOW) {
digitalWrite(buzzer, HIGH);
Serial.println("Flame detected!");
}
else {
digitalWrite(buzzer, LOW);
Serial.println("No flame detected.");
}
delay(200);
}
Important
Many common flame sensor modules use active-LOW digital output, meaning the DO pin becomes LOW when the detection threshold is triggered.
If your particular module behaves differently, reverse the HIGH/LOW condition in the code.
9. Beginner Project
🔥 Arduino Flame Alarm
Build a simple flame detection alarm using:
Components Required
- Arduino Uno
- Flame Sensor Module
- Buzzer
- LED
- 220Ω resistor
- Breadboard
- Jumper wires
Connections
Flame Sensor VCC → Arduino 5V
Flame Sensor GND → Arduino GND
Flame Sensor DO → Arduino D2
Buzzer → Arduino D8
When the sensor detects a flame, the Arduino activates the buzzer.
What you’ll learn
This project teaches:
- Digital sensor inputs
digitalRead()- Conditional statements
- Buzzer control
- Sensor threshold adjustment
- Basic fire-detection logic
10. Related Products
Combine the Flame Sensor Module with:
- Arduino Uno R3 Compatible Board
- Breadboard
- Jumper Wire Kit
- Active Buzzer Module
- LEDs
- Resistor Kit
- Relay Module
- LCD Display
- OLED Display
- Servo Motor
- DC Motors
- L298N Motor Driver
- Ultrasonic Sensor
- Battery Pack
For a fire-fighting robot
A useful combination is:
Arduino Uno + Flame Sensor + Motor Driver + DC Motors + Robot Chassis + Buzzer
11. Related Tutorials
Recommended Yagobotix tutorials:
- How to Use a Flame Sensor with Arduino
- Arduino Flame Detection Project
- Build an Arduino Fire Alarm
- Read Analog Sensor Values with Arduino
- Arduino Buzzer Tutorial
- Build a Flame-Fighting Robot
- Arduino Sensor Basics for Beginners
- Digital vs Analog Sensors Explained
12. Frequently Asked Questions
What does a flame sensor detect?
It detects infrared radiation associated with flames.
Can I use this with Arduino Uno?
Yes. It can be connected to Arduino Uno using its digital or analog output.
Does it have both analog and digital output?
Yes. The module typically provides AO and DO outputs.
Can I adjust its sensitivity?
Yes. The onboard potentiometer can be used to adjust the digital detection threshold.
What voltage does it use?
Typical modules operate from approximately 3.3V to 5V.
Can it detect a candle flame?
Yes, a candle flame can generally be detected under suitable conditions. Detection depends on distance, flame size, ambient light and sensor orientation.
Can it detect fire from a long distance?
Do not treat the module as having a guaranteed fixed detection range. Performance depends heavily on the flame, environment and module version.
Can I use it as a home fire alarm?
It is not recommended as a replacement for a certified fire alarm system. This module is intended primarily for learning, experimentation and prototypes.
Does the sensor work in sunlight?
Strong ambient infrared sources, including sunlight, can interfere with flame detection and may cause false readings.
Can I use the analog output?
Yes. Connect AO to an Arduino analog input such as A0 and read it using analogRead().
13. What is Included?
Package Contents:
- 1 × Flame Sensor Module
Note: Arduino board, jumper wires, breadboard, buzzer and other components shown in project examples are not included unless specifically mentioned in the product package.
14. Compatibility
The Flame Sensor Module can be used with a wide range of development boards and microcontrollers capable of reading digital or analog signals.
Compatible platforms include:
- Arduino Uno
- Arduino Nano
- Arduino Mega
- ESP32*
- ESP8266*
- Other compatible microcontroller boards
*When connecting the module to 3.3V-only boards, verify the module’s output voltage and ensure it does not exceed the microcontroller’s input limits.
15. Add Flame Detection to Your Next Project
Build your own Arduino fire detection system, flame alarm, robotics project or STEM experiment with this compact Flame Sensor Module.
Connect it to your Arduino, write a few lines of code and turn flame detection into an automated response.
👉 Add the Flame Sensor Module to your cart and start building with Yagobotix.





There are no reviews yet.