Fire Detector
Objective
The objective of this project is to build a fire detection system using a flame sensor and Arduino
Uno. When a flame is detected, the system will trigger an alarm using a buzzer, alerting the user to
the presence of fire or flame in the monitored area.
Principle
This fire detector system operates on the principle of infrared light detection. A flame sensor detects
IR light emitted from flames. When the sensor detects IR radiation from a fire:
• It sends a LOW signal to the Arduino.
• The Arduino, in turn, activates the buzzer, signaling fire detection. If no flame is present, the
sensor sends a HIGH signal, and the buzzer remains off.
Components Required
• Arduino Uno
• Flame Sensor Module
• Buzzer
• Jumper wires
• Breadboard (optional)
• USB cable
Working
1. Flame sensor detects IR light from flame.
2. If IR light is detected (indicating flame), sensor gives LOW signal.
3. Arduino reads the sensor value:
o If LOW → activates buzzer.
o If HIGH → buzzer remains OFF.
Circuit Diagram
Connections:
Flame Sensor Arduino Uno
VCC 5V
GND GND
DO Digital Pin 2
Arduino
Buzzer
Uno
+ Digital Pin 8
- GND
I can generate a circuit diagram for this. Would you like me to show it?
Arduino Code
// Fire Detector using Flame Sensor and Buzzer
const int flameSensorPin = 2; // Digital pin connected to flame sensor
const int buzzerPin = 8; // Digital pin connected to buzzer
void setup() {
pinMode(flameSensorPin, INPUT);
pinMode(buzzerPin, OUTPUT);
Serial.begin(9600);
void loop() {
int sensorState = digitalRead(flameSensorPin);
if (sensorState == LOW) {
// Flame detected
digitalWrite(buzzerPin, HIGH);
Serial.println(" Flame Detected! ");
} else {
// No flame
digitalWrite(buzzerPin, LOW);
Serial.println("No Flame");
}
delay(500); // Delay for stability
Applications
• Fire alarm systems
• Smart home safety
• Industrial fire monitoring
• Forest fire detection prototypes