Course Content
IoT Engineering Course using ESP32 with 12 Real-World Projects

πŸ”₯ 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.

Scroll to Top