Fire Detection
Fire Detection
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:
• 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
• Buzzer
• Jumper wires
• Breadboard (optional)
• USB cable
Working
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
void setup() {
pinMode(flameSensorPin, INPUT);
pinMode(buzzerPin, OUTPUT);
Serial.begin(9600);
void loop() {
if (sensorState == LOW) {
// Flame detected
digitalWrite(buzzerPin, HIGH);
} else {
// No flame
digitalWrite(buzzerPin, LOW);
Serial.println("No Flame");
}
delay(500); // Delay for stability
Applications