IoT Based Gas Leakage Detection system project using Arduino

IoT Based Gas Leakage Detection system project using Arduino

IoT based Gas Leakage Detection system project using Arduino

Liquified Petroleum Gas (LPG) is nowadays commonly used in households, industries and other places as it is very convenient, affordable and eco friendly and less hazardous than its other alternatives. It has proven to be one of the most reliable and easily controlled fuels. It is supplied to various places in cylinders or pipelines.

Hence, it can leak both as a liquid or as a gas if it is not handled cautiously. Accidents and disasters related to LPG gas leakage are not unheard of. These leakage accidents can cause huge fire and explosion.

These accidents are caused usually caused due to negligence and careless handling of the gas. If the gas leakage is not detected in the early stages, then it can lead to a very big disaster, as nowadays we can find the supply of LPG gas in almost every household. So, a lot of people have to face danger in case of such catastrophe.



In this Gas leakage detection system project, we propose an Arduino and IoT based gas leakage detection system, which will help in detecting any gas leakage with the help of MQ5 gas sensor and send this data over the internet to the IoT module and that will in turn alert the user about this gas leakage.

Hence, following this process, we can detect gas leakage in the early stages and prevent any future accidents.

The finished device is connected to the IoT module over Wi-Fi.

The maximum and minimum parameters of the gas can be set in the device accordingly.

The device will continuously monitor the level of gas in the surrounding air with the help of MQ5 gas sensor.

The signals from this sensor is continuously being sent to the Arduino circuitry.

If any abnormal reading is found, which is more than the set parameters of the maximum level that can be present in the air, the RGB LED lights will glow red and instantly the solenoid value will turn off and these readings will be transferred over the IoT module and the user will be alerted about this leakage.

Once the gas leakage is detected, the buzzer is turned ON and a ‘Leakage detected’ message is displayed on the LCD. If the values of the gas present in the air is within the set parameters, then the RGB lights glow green.

Therefore, with the help of this project, we can easily detect LPG gas leakage with the help of IoT and Arduino and prevent any hazardous accident.


Block Diagram


using Arduino gas leakage detection project block diagram

Image Credit:





  • Arduino
  • LCD display
  • Wi-Fi module
  • DC fan
  • Gas sensor
  • Buzzer
  • Regulator
  • Crystal Oscillator
  • Resistors
  • Capacitors
  • Transistors
  • Wires and Connectors
  • Diodes
  • PCB and Breadboards
  • LED
  • Transformer/Adapter
  • Push Buttons
  • Switch
  • IC
  • IC Sockets





Arduino and IoT based gas leakage detection project code

Image credit:




  • Fully Automated System.
  • If proper steps are taken instantly, it can save loss of life and property.
  • It can also be used to detect other poisonous gases.



  • User needs to check the LED lights for leakage.
  • Installation cost can be high.



  • Houses
  • Factories
  • Hotels
  • Industries
  • Restaurants
  • LPG Gas storehouse


See alsoIoT in Oil and Gas Industry : Industrial IoT Applications


Let us know what you know more about IoT based Gas Leakage Detection system using Arduino in the comment section below.


If you like this post subscribe our YouTube Channel for IoT video Tutorials. You can also find us on Twitter, Facebook, and Instagram for more updates.

Start your IoT journey with IoT Basics from IoTDunia.


for more projects visit at IoT Projects for Beginners and Final year students


IoTDunia is working towards a vision of empowering the youth by providing them with great professional opportunities with Internet of Things to build world class ecosystem.