LPG Gas Leakage Detector using Arduino
Leaks of LPG are a problem in both homes and factories these days. It is very dangerous to your life if you don’t change it right away.
The goal of our project is to come up with a way to keep an eye on pipelines in remote areas. Simple A gas leak detector is a simple device that is used to find gas leaks. If a gas leak is found, a buzzer will sound to let you know.
Step 1: Collecting the Components Required for this project.
- Arduino UNO with cable
- MQ-135 Gas Sensor
- Buzzer
- LED
- Resistor
- Jumper Wires
You can buy all these components with instructions by clicking here
Step 2: Assembling the Components – Circuit Design
Step 3: Uploading the Code in the microcontroller (Arduino Nano)
- Connect the Arduino nano to PC or laptop with the given USB cable.
- Open Arduino IDE or download it from here.
- Go to tools > board: > Arduino AVR Boards and select “Arduino Uno”.
- Select the COM Port
- Copy and paste the code given below in the Arduino IDE and hit Upload.
void setup() { pinMode(5,OUTPUT ); pinMode(2, INPUT); } void loop() { if( digitalRead(2)==LOW) { digitalWrite(5, HIGH); delay(1000); } else { digitalWrite(5, LOW); } }
Thank you for learning with us. We hope all the steps and details are easy to understand.
And that’s it. Thanks for learning with SR Robotics if you have any doubts or query you can contact us with the help of links given below.
For more Robotics projects, join our SR Robotics community
To buy more kits, visit our website
Check more on our website
Subscribe SR Robotics channel on YouTube and keep learning
Get all latest update on our telegram