4.00 out of 5
(1 customer review)

10,500.00 8,800.00

Ready-made Project

If You Are Short On Time
10,500.00 8,800.00
Add to cart - OR - See more options

We have an LPG Sensor Project using Arduino and MQ2 sensor before – which senses lpg leak and produces sound alarm. The project also has a relay system which turns ON or OFF a particular device upon gas leak (say we can turn the main electrical supply OFF upon gas leak to prevent fire).

Kits DescriptionPrice
Ready-made Project + DIY Project Kit
If You Are An Enthusiast

Do It Yourself Kit
Ready-made Project,PCB,Components,Circuit Diagram,Program,Report,Explanatory Video

11,500.00 9,700.00
Ready-made Project
If You Are Short On Time

Ready-made Kit
Ready-made Project,Circuit Diagram,Program,Report,Explanatory Video

10,500.00 8,800.00
DIY Project Kit
For Institutions

Project Kit
PCB,Components,Circuit Diagram,Program,Report,Explanatory Video

9,500.00 7,400.00
For Documentation

Circuit diagram,Program,Report,Explanatory Video

2,000.00 1,800.00

PCB,Circuit Diagram

1,500.00 1,000.00


A simple LPG sensor using arduino is shown in this article. This circuit indicates the amount of LPG in the air. The circuit  sounds an alarm and trips a relay  when the concentration is above a predetermined level. MQ2 is the gas sensor used in this project. MQ2 is an SnO2 based gas sensor which can sense gases like methane, propane, butane, alcohol, smoke, hydrogen etc. Since LPG primarily contains propane and butane, MQ2 sensor can be used for sensing LPG. The figure below shows the schematic and arrangement of an MQ2 gas sensor.

MQ2 sensor senses the flammable gases by the increase in temperature when they are oxidized by the heating element. Consider the figure given above. If there is any flammable gas present in the sample , the oxidization of the same gas results in increased temperature and the resistance of the sensor resistor will drop. That means more current will flow through the load resistor and so the voltage across it will shoot up.

At normal conditions(no LPG in the air), the sensor resistor will be very high around 850K . So the voltage drop Vout across the load resistor will be around zero. When the sensor is fully exposed to LPG the sensor resistance drops to around 800 ohms and the voltage drop across the load resistance will be around 4.62 volts.  After conversion by the ADC, the digital equivalent of  4.62 volt will be 948 and it is stored in the variable “d” (refer the program ). Figure below shows a graph plotted from the observed parameters.

Actually the graph may not be a straight line. But  here we have to assume it to be a straight line because it is not possible to simulate LPG concentrations other than 0% and 100% with our limited lab facilities. For accurate calibration of the sensor, we need some means to know the precise concentration of the gas in the given environment. Anyway what we have is somewhat enough for our purpose.

The concentration percentage for a given digital output of the ADC can be determined using the following equation. p=d/9.48 where d is the digital output of the ADC and p is the percentage. The equation is obtained by finding the equation of the above graph in the general form y=mx+c. Where m is the slope and c is the y intercept. The full circuit diagram of the LPG sensor using arduino is shown below.


  • Detect Gas Leakage (like LPG leak, Butane leak, Methane leak) or any such petroleum based gaseous substance that can be detected using MQ5 Sensor.
  • Setup an SMS based Alert Mechanism and send 3 SMS (3 alert messages) to 2 specified mobile numbers (input inside the arduino program)
  • Produce a sound alarm upon gas leak and stop the alarm once gas leak is under control (gas presence in atmosphere is under normal range)
  • Display status in an LCD using a 16×2 LCD module.



  • Arduino
  • MQ-2 Sensor
  • LCD
  • Transformer
  • GSM
  • Buzzer


  • Arduino
  • Eagle



  1. 4 out of 5

    Nilam powar

    I have order project kit. And your service is very nice and fast thank you Electrosal.

Add a review

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

You may also like…