🔥 Lesson 3.1 – Introduction to Flame Sensor
In this lesson, we will learn about the Flame Sensor, its working principle, pin configuration, and how it is used in fire detection systems. This sensor will act as the main input device for our IoT-Based Fire Alert System.
🔥 What is a Flame Sensor?
A Flame Sensor is an electronic sensor that detects the presence of fire or flame by sensing infrared (IR) light emitted from a flame.
When a flame is present:
✅ Sensor detects infrared radiation
✅ Output signal changes
✅ ESP32 receives the signal
✅ Alert system can be activated
When no flame is present:
❌ No infrared radiation detected
❌ No alert generated
🎯 Why Do We Use a Flame Sensor?
Flame sensors are widely used in safety and automation systems.
Applications
🏠 Home Fire Detection Systems
🏭 Industrial Safety Systems
🧪 Chemical Laboratories
🚗 Fire Detection in Vehicles
🤖 Robotics Projects
🌐 IoT-Based Monitoring Systems
⚙️ Working Principle of Flame Sensor
A flame produces infrared radiation that is invisible to the human eye.
The flame sensor contains an infrared receiver that continuously monitors the surrounding area.
Working Process
🔹 Step 1: Fire Produces Infrared Rays
When a flame burns, it emits:
🔥 Heat
💡 Light
📡 Infrared Radiation
🔹 Step 2: Sensor Detects Infrared Radiation
The infrared receiver inside the sensor detects the radiation produced by the flame.
🔹 Step 3: Signal Processing
The sensor module processes the received infrared signal and changes its output state.
🔹 Step 4: ESP32 Reads the Output
The ESP32 continuously checks the sensor output pin.
If a flame is detected:
✅ Fire Alert Condition
If no flame is detected:
✅ Normal Condition
🔹 Step 5: Alert Generation
After detection, ESP32 can perform different actions:
🔔 Activate a Buzzer
💡 Turn ON Warning LED
📱 Send Notification to Mobile
🌐 Update Blynk Dashboard
🛠️ Main Parts of a Flame Sensor Module
A typical flame sensor module contains:
🔹 Infrared Receiver
Detects infrared radiation emitted by fire.
🔹 Comparator IC
Converts sensor signals into digital output signals.
🔹 Sensitivity Potentiometer
Used to adjust the flame detection sensitivity.
🔹 Power LED
Shows whether the module is receiving power.
🔹 Detection LED
Glows when a flame is detected.
🔌 Flame Sensor Pin Configuration
Most flame sensor modules have four pins.
| Pin | Function |
|---|---|
| VCC | Power Supply |
| GND | Ground |
| DO | Digital Output |
| AO | Analog Output |
🔹 VCC Pin
VCC → 3.3V or 5V
This pin provides power to the sensor module.
🔹 GND Pin
GND → Ground
This pin completes the electrical circuit.
🔹 DO (Digital Output) Pin
DO → Digital Signal
This pin provides only two states:
✅ HIGH
✅ LOW
Useful when we only want to know:
“Is fire present or not?”
🔹 AO (Analog Output) Pin
AO → Analog Signal
This pin provides varying values based on flame intensity.
Example:
| Flame Intensity | Analog Value |
|---|---|
| No Flame | Low |
| Small Flame | Medium |
| Large Flame | High |
📊 Digital Output vs Analog Output
🔹 Digital Output
Advantages:
✅ Easy to use
✅ Faster response
✅ Simple programming
Example Result:
0 = Flame Detected
1 = No Flame
🔹 Analog Output
Advantages:
✅ Measures flame intensity
✅ More detailed data
✅ Useful for advanced projects
Example Result:
120 = Small Flame
450 = Medium Flame
900 = Large Flame
🎛️ Sensitivity Adjustment
Most flame sensor modules contain a small blue potentiometer.
Purpose
✅ Increase detection distance
✅ Decrease false detection
✅ Improve project accuracy
Turn Clockwise:
📈 Increase Sensitivity
Turn Anti-Clockwise:
📉 Decrease Sensitivity
⚠️ Advantages of Flame Sensor
✅ Low Cost
✅ Easy to Interface
✅ Fast Response
✅ Suitable for ESP32 and Arduino
✅ Small Size
✅ Low Power Consumption
❌ Limitations of Flame Sensor
❌ Cannot measure exact temperature
❌ Strong sunlight may affect readings
❌ Limited detection range
❌ Requires proper sensitivity adjustment
📌 Key Points to Remember
✅ Flame sensors detect infrared radiation from fire.
✅ They are commonly used in safety and IoT projects.
✅ The sensor provides Digital and Analog outputs.
✅ Sensitivity can be adjusted using the onboard potentiometer.
✅ ESP32 can use sensor data to generate alarms and send notifications.
✅ Flame sensors are an important component in smart fire detection systems.