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

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

The fire detector is one of the most important systems that should be in every home, as it allows detecting the presence of a fire inside the house. Then intervene before the fire develops. In this post, we will learn : How to make fire detector using arduino and fire sensor.

Electronic components needed :

To make this simple project we need these following components :

  • Fire sensor
  • 1 Led
  • Resistance ( 220 Ohm )
  • Resistance ( 5K Ohm )
  • buzzer
  • Electrical wires
  • Arduino UNO
  • Breadboard

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

Schema of the circuit :

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

Arduino programming code :

int FlameSensorPin=A0;
int FlameSensorReading;
int LED=2;

// by 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); 
}

Explainer video :

Discover also :

How to control LED lights with Arduino

How to use arduino IDE software

Arduino Programming Language Structure

What is an arduino board?

LEAVE A REPLY

Please enter your comment!
Please enter your name here