Ishan Ajay
Published © GPL3+

Fire sensor

Make a fire sensor that is (not so) sensitive

BeginnerFull instructions provided20,417
Fire sensor

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
This is our programmer board.
×1
5 mm LED: Red
5 mm LED: Red
This will turn on when there is a fire.
×1
5 mm LED: Green
5 mm LED: Green
This will switch on when there is no fire.
×1
IR fire sensor
This will detect our fire
×1
Jumper wires (generic)
Jumper wires (generic)
No circuit is complete without jumpers!
×1
Buzzer
This is our alarm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

diagram

The circuit diagram was made from Paint 3D so it might not be so understandable. You can find a more understandable diagram with this link:

https://drive.google.com/file/d/1NadbaH5q3G5KbLauzk_OdRTa1kg2AxZI/view?usp=sharing

Code

Code

C/C++
//Arduino Flame Sensor
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);
  }
}

Credits

Ishan Ajay

Ishan Ajay

1 project • 12 followers

Comments