DESHBOT Project – Arduino Nano Flame Sensor and 16×2 LCD Fire Detection

by devkrishnavhora in Circuits > Arduino

9 Views, 0 Favorites, 0 Comments

DESHBOT Project – Arduino Nano Flame Sensor and 16×2 LCD Fire Detection

flame.jpeg
flame.jpeg

The DESHBOT project uses an Arduino Nano, DESHBOT Shield, flame fire sensor, and a 16×2 LCD display to detect the presence of fire. The flame sensor continuously monitors the surrounding area, while the LCD displays the current fire detection status.

Supplies

des 1.jpeg
WhatsApp Image 2026-08-25 at 12.00.19 PM.jpeg
flamees.jpeg

Arduino Nano

DESHBOT Shield

Flame Fire Sensor Module

16×2 LCD Display

Jumper wires

Connect the 16×2 LCD

Connect the 16×2 LCD to the Arduino Nano through the DESHBOT Shield connections.

The LCD is used to display the current flame detection status. After connecting the LCD, check that it is properly powered and the text is visible.

The LCD will display different messages according to the flame sensor condition.

Connect the Flame Fire Sensor

The flame sensor module normally has the following pins:

  1. VCC → Arduino Nano 5V
  2. GND → Arduino Nano GND
  3. D0 → Arduino Nano Digital Input Pin
  4. A0 → Arduino Nano Analog Input Pin, if analog detection is required

For this project, the Arduino Nano continuously reads the flame sensor output to check whether a flame is detected.

The flame sensor should be positioned facing the area where fire detection is required.

Set the Flame Detection Condition

flame.jpeg

The flame sensor detects infrared light produced by a flame.

When a flame is detected:

  1. The system enters the FIRE DETECTED condition.
  2. The 16×2 LCD displays a fire warning message.

When no flame is detected:

  1. The system remains in the NO FIRE DETECTED condition.
  2. The LCD displays the normal monitoring status.

The sensitivity of the flame sensor can usually be adjusted using the potentiometer available on the sensor module.

Upload the Arduino Sketch

Open the DESHBOT Arduino Nano sketch in the Arduino IDE.

The sketch should initialize:

  1. The 16×2 LCD display
  2. The flame sensor input
  3. The fire detection condition

The Arduino continuously reads the flame sensor and updates the LCD according to the current sensor status.

Downloads

Fire Detected

When the flame sensor detects a flame, the LCD displays a warning message:

FIRE DETECTED!
WARNING!

This indicates that the sensor has detected a flame and the DESHBOT system is in the fire detection condition.



No Fire Detected

When the flame sensor does not detect a flame, the LCD displays:

NO FIRE
DETECTED

This indicates that the DESHBOT system is operating normally and continuously monitoring the area for a flame.

Test the Project

Upload the completed DESHBOT sketch to the Arduino Nano.

After uploading:

  1. Power ON the DESHBOT system.
  2. Check that the 16×2 LCD is working correctly.
  3. Keep the flame sensor away from any flame.
  4. The LCD should display NO FIRE DETECTED.
  5. Carefully place a small flame in front of the sensor from a safe distance.
  6. The sensor should detect the flame.
  7. The LCD should change to FIRE DETECTED!
  8. Remove the flame from the detection area.
  9. The LCD should return to the NO FIRE DETECTED status.


Working Principle

The flame fire sensor detects infrared radiation produced by a flame. The Arduino Nano continuously reads the sensor output through the DESHBOT Shield.

When a flame is detected, the Arduino updates the 16×2 LCD to display FIRE DETECTED!. When no flame is detected, the LCD displays NO FIRE DETECTED.

This process continuously repeats, allowing the DESHBOT system to monitor the surrounding area and provide real-time fire detection status.

Important Note

The flame sensor module may use HIGH or LOW output logic, depending on the sensor module and its sensitivity setting. Test the sensor output before finalizing the Arduino code.

If the LCD displays the opposite status, reverse the detection condition in the Arduino sketch or adjust the sensitivity potentiometer until the sensor correctly detects the flame.