George Kartsonas
Published © GPL3+

Autonomous Fire Hazard System

The time has come to automate our good old fire alarms and make them part of an interconnected world.

BeginnerFull instructions provided1 hour955
Autonomous Fire Hazard System

Things used in this project

Hardware components

Particle Photon
Relay Shield for Particle Photon I²C 8-Channel SPDT 10-Amp Relay Shield for Particle Photon I²C 8-Channel SPDT 10-Amp
Seeed Studio KY-026 Flame Detector Sensor

Software apps and online services

Maker service
IFTTT Maker service
Particle Build Web IDE
Particle Build Web IDE


Read more


Autonomous Fire Hazard System Code

int LED = 7; // Use the onboard LED
int LIGHTS = 6;
int isFlamePin = 0;  // This is our input pin
int isFlame = LOW;  // LOW MEANS NO FLAME

void setup() {
  pinMode(LED, OUTPUT);
  pinMode(LIGHTS, OUTPUT);
  pinMode(isFlamePin, INPUT);

void loop() {
  isFlame = digitalRead(isFlamePin);
  if (isFlame== LOW)
     digitalWrite(LED, LOW);
     digitalWrite(LIGHTS, LOW);
      digitalWrite(LED, HIGH);
      digitalWrite(LIGHTS, HIGH);
      Particle.publish("Fire", "House is on fire", PUBLIC);


George Kartsonas

George Kartsonas

2 projects • 44 followers


Add projectSign up / Login