How to make fire detector using arduino and Flame Sensor

fire detector using Arduino and flame sensor
fire detector using Arduino and flame sensor

In this post, we’ll discover how to make a fire detector using Arduino and a flame sensor, step by step. A fire detector is used as an alarm to detect the presence of a fire in a specific location, allowing appropriate action to be taken to prevent the spread of the fire. This device is very easy and simple to use—just follow the steps below correctly.

Electronic components that we need:

  • Flame Sensor
  • Buzzer
  • 1 LED
  • 1 resistor (5k Ohm)
  • 1 resistor (220 Ohm)
  • Electrical wires
  • Arduino UNO
  • Breadboard

Circuit diagram:

Arduino Programming Code:

int FlameSensorPin=A0;
int FlameSensorReading;
int LED=2;
// by www.andprof.com
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); // open the serial port
pinMode(LED, OUTPUT); // led
}
void loop()
{
// put your main code here, to run repeatedly:
FlameSensorReading=analogRead(FlameSensorPin);
Serial.println(FlameSensorReading);
if(FlameSensorReading>5){
digitalWrite(LED,HIGH);
tone( 3, 2000, 500);
}
else {
digitalWrite(LED,LOW);
}
delay(500);
}

Explanatory Video:

How to make fire detector using arduino and fire sensor | arduino project with code

Previous articleHow to control LED lights with an Arduino, simple project with code
Next articleHow to use digit 7-segment LED display with Arduino