Daini
Published © CC BY-NC-SA

Fire detection alarm

The flame sensor discovers the presence of fire using the infrared flame flash technique. It has a sensitivity range between 4.3 to 4.4

BeginnerFull instructions provided1 hour23,086
Fire detection alarm

Things used in this project

Story

Read more

Schematics

Schematics

Code

Code

Arduino
const int buzzerPin = 11;
const int flamePin = 2;
int Flame = HIGH; 
void setup() 
{ pinMode(buzzerPin, OUTPUT); 
pinMode(flamePin, INPUT);
Serial.begin(9600);
} void loop() {
  Flame = digitalRead(flamePin);
  if (Flame== LOW) { Serial.println("Fire is Detected")
  ; digitalWrite(buzzerPin, HIGH); 
    
  } else 
  { Serial.println("No Fire is Detected");
  digitalWrite(buzzerPin, LOW);
  }

Credits

Daini

Daini

31 projects • 16 followers

Comments