Zeeshan
Published

Kitchen Gas Detector

I chose this project to build something for my wife who is always engaged in kitchen cooking.

BeginnerWork in progress1 hour1,775
Kitchen Gas Detector

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
MQ-5 Methane Gas Sensor
×1
Buzzer
Buzzer
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit

Code

Arduino Code

C/C++
Upload to arduino after setting threshold of the gas in your area
const int gasPin = A0; //GAS sensor output pin to Arduino analog A0 pin



int buz=2;
int gas_lev;
int thresh=0;

void setup()
{

	Serial.begin(9600); //Initialize serial port - 9600 bps

}


void loop()
{

	gas_lev=analogRead(gasPin));

	delay(100);
	if (gas_lev>=thresh){
		digitalWrite(2,HIGH);
	}
	else
		digitalWrite(2,LOW);
}

Credits

Zeeshan

Zeeshan

13 projects • 50 followers
Creative and destructive design master. Ability to use the brain waves for both construction and destruction

Comments