Ashwini kumar sinha
Published © CC BY

Smart Fire and Flammable Gas Safety Valve

A smart valve that automatically stops the flammable gas supply when gas leakage takes place or fire occurs for protection.

IntermediateWork in progress10 hours2,290
Smart Fire and Flammable Gas Safety Valve

Things used in this project

Story

Read more

Schematics

untitled_sketch_bb_J9RuuoyMLg.jpg

Code

infinion.ino

Arduino
int gassensor=9;
int Mosfet=7;

void setup(){

pinMode(gassensor,INPUT);
pinMode(Mosfet,OUTPUT);
}

void loop(){

  if (digitalRead(gassensor==LOW)){

  digitalWrite(Mosfet,1);//for on
    
  }
  if (digitalRead(gassensor==HIGH)){

  digitalWrite(Mosfet,0);//for off to save
    
  }
  
}

Credits

Ashwini kumar sinha

Ashwini kumar sinha

31 projects • 75 followers
Ashwini kumar sinha a Robotic lover and electronics hobbyist. Works at EFY-I

Comments