Skip to product information
1 of 3

Blue PCB Electronics

2C29 MQ-5 LPG, natural gas , town gas Sensor Module

2C29 MQ-5 LPG, natural gas , town gas Sensor Module

Regular price Dhs. 19.00
Regular price Dhs. 35.00 Sale price Dhs. 19.00
Sale Sold out
View full details

Description

The MQ5 sensor is a sensor having high sensitivity to LPG, natural gas and town gas. It is mainly used for detecting LPG.

The SnO2 semiconductor material is used in the MQ5 for detecting the gases. It has lower conductivity in clean air. It helps in detecting the rising levels of gases through rise in its conductivity. Users can convert the change of conductivity to gas concentration through a simple electronic circuit.

Datasheet

An MQ5 LPG sensor has a wide array of applications such as:

  • Domestic and industrial gas leakage detector
  • Industrial Combustible gas detector 
  • Portable gas detector

Applicability of a MQ5 LPG sensor is enhanced by following features:

  • Good sensitivity to LPG, natural gas and town gas
  • Small sensitivity to alcohol, smoke
  • Fast response time
  • Avoids the noise of alcohol and cooking fumes and cigarette smoke
  • Long life
  • Stability
  • Economical
  • Simple drive circuit

MQ5 LPG Sensor specifications

  • Operating Voltage: 5V 
  • Operating Current: 150mA
  • Concentration: 200-10000ppm

MQ5 LPG Sensor pin diagram

MQ5 LPG sensor pin diagram

Pin1: It is a digital output Pin. From this pin, you will get digital data HIGH/LOW.
Pin2: It is analog output Pin. From this pin, you will get analog data.
Pin3: It is GND Pin. It is used to connect GND to the sensor.
Pin4: It is VCC Pin. It is used to connect 5V to the sensor.

Circuit diagram of MQ5 LPG Sensor with Arduino

 MQ5 LPG sensor Arduino circuit diagram

Pin connection of MQ5 LPG Gas Sensor with Arduino

  • Connect the VCC pin of the sensor to the 5V pin of the Arduino UNO board
  • Connect the GND pin of the sensor to the GND pin of the Arduino UNO board
  • Connect the AO pin of the sensor to the A1 pin of the Arduino UNO board

Arduino code for interfacing MQ5 LPG Sensor with Arduino

int sensorPin=A1;
int sensorData;
void setup()
{  
  Serial.begin(9600);   
  pinMode(sensorPin,INPUT);                         
 }
void loop()
{
  sensorData = analogRead(sensorPin);       
  Serial.print("Sensor Data:");

  delay(100);                                   
}

Arduino code working

Create a variable named sensorPin to the pin number of the Arduino UNO board where you have connected the AO pin of the sensor. In our case, it is A1 pin of the Arduino UNO board.

Create another variable named sensorData. We will use this variable to store the data that will be received by the Arduino from the sensor.

Inside the void setup block, set the baud rate for the serial communication and initiate the serial communication using Serial.begin() command.

Then use the pinMode() function to set the sensorPin as INPUT. The Arduino will use this pin to get the analog data from the sensor.

Inside the void loop() function, use sensorData variable to store the data that is received by the Arduino from the sensor. 

Then, print the data on the serial monitor using the print and println command.

Note: The sensor can detect LPG, natural gas and town gas. So, the value that you will get from the sensor will depend on the gas that is present.