Fire Detector


A fire detector utilizing Arduino is a vital safety project designed to detect the presence of fire or smoke within an environment. The system incorporates sensors such as smoke detectors or flame sensors, which interface with an Arduino microcontroller. Continuously monitoring sensor data, the Arduino triggers an alarm, typically a buzzer or LED, upon detecting smoke or flames. Moreover, the Arduino can be programmed to send notifications via Wi-Fi or GSM modules to alert users remotely. This project offers an affordable, customizable solution for fire detection and prevention, contributing significantly to safety in homes, offices, and various other settings.


 Circuit Diagram :-



Code :-


//  By Arduino Techy
					​//
const int buzzerPin = 12;
const int flamePin = 11;
int Flame = HIGH;
int redled = 5;
int greenled = 6;
void setup() 
{
  pinMode(buzzerPin, OUTPUT);
  pinMode(redled, OUTPUT);
  pinMode(greenled, OUTPUT);

  pinMode(flamePin, INPUT);
  Serial.begin(9600);
}

void loop() 
{
  Flame = digitalRead(flamePin);
  if (Flame== LOW)
  {
    digitalWrite(buzzerPin, HIGH);
    digitalWrite(redled, HIGH);
    digitalWrite(greenled, LOW);
  }
  else
  {
    digitalWrite(buzzerPin, LOW);
    digitalWrite(greenled, HIGH);
    digitalWrite(redled, LOW);
  }
}



Components :-

blue and black circuit board

Arduino Uno

 Buying Link - 

https://amzn.to/3xKP1nL

Flame Sensor

Buying Link -

https://amzn.to/3Q7RbnS

Buzzer

 Buying Link - 

https://amzn.to/3QdNtsC

 Led

 Buying Link - 

https://amzn.to/3xLDncc

Jumper Wires

 Buying Link -

https://amzn.to/3w3Y4j3

Rain Detector