LPG Gas Leakage Detector using Arduino

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.

  1. Arduino UNO with cable
  2. MQ-135 Gas Sensor
  3. Buzzer
  4. LED
  5. Resistor
  6. 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)

  1. Connect the Arduino nano to PC or laptop with the given USB cable.
  2. Open Arduino IDE or download it from here.
  3. Go to tools > board: > Arduino AVR Boards and select “Arduino Uno”.
  4. Select the COM Port
  5. 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);
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

download.png To buy more kits, visit our website
Check more on our website

images (19).jpeg
Subscribe SR Robotics channel on YouTube and keep learning

Get all latest update on our telegram

Share this post