LPG, CNG gas detection alarm

In this video, we are going to make an LPG, CNG alarm which can be very useful in the kitchen area. if there is any leakage of LPG or CNG so the sensor can detect the gas. CNG can be detected from the vehicle which uses the CNG has. the alarm is very small in size so you can fit it anywhere in your home or car. It is easy to make the alarm system. you should have some basic knowledge to make this project and also you will learn a lot in this article.

LPG gas sensor detects the LPG gas sensor mq6 by some chemical reaction inside the sensor which affects the conductivity of the coil inside the sensor. which give different value at the different level of the gas. so, when the sensor place in that area where the gas can leak then the sensor can easily detect the gas and send this information to the Arduino. so, that the Arduino can take the action according to the predetermined code inside the Arduino board.

 

electronic components

 

Electronic Components Required to make LPG gas alarm:-

Circuit Diagram for LPG gas alarm:-

 

lpg gas sensor mq6

Code for LPG gas alarm:-

int m= 0;
void setup() {
// put your setup code here, to run once:
pinMode(3, INPUT_PULLUP);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
m= digitalRead(3);
if(m == LOW)
{
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
}
else
{
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
digitalWrite(6, LOW);

}

}

Upload the given code into the Arduino and make the connection according to the circuit diagram.

 

Leave a Reply

Your email address will not be published. Required fields are marked *