Robot Pi Shop

MQ-5 - Natural gas, LPG

$1.99

Shipping calculated at checkout.

Quantity

The MQ-5 LPG and Natural Gas Sensor Module is a compact semiconductor gas sensor designed to detect combustible gases, particularly LPG (liquefied petroleum gas) and natural gas. It is sensitive to gases such as propane, butane, and methane, making it suitable for gas detection experiments, environmental monitoring, and electronic projects.

The MQ-5 uses a Metal Oxide Semiconductor (MOS) sensing element made from tin dioxide (SnO2). Its electrical resistance changes when exposed to combustible gases, allowing a connected microcontroller to monitor changes in gas concentration.

Operating at 5V DC, the module features an analog output for gas concentration monitoring and an adjustable detection threshold on versions equipped with a digital output.

It can be integrated with Arduino, ESP32, Raspberry Pi (with additional interfacing), and other compatible development boards.

Key Features

  • LPG Detection: High sensitivity to liquefied petroleum gas, including propane and butane.
  • Natural Gas Detection: Suitable for detecting changes in methane and natural gas concentrations.
  • Combustible Gas Sensing: Responds to multiple flammable gases.
  • Analog Output: Provides a variable voltage related to changes in gas concentration.
  • Adjustable Detection Threshold: Available on module versions equipped with a comparator and potentiometer.
  • 5V Operating Voltage: Suitable for common microcontroller projects.
  • Fast Response: Detects changes in combustible gas concentration.
  • Reduced Cross-Sensitivity: Generally less sensitive to alcohol vapors and smoke than to its primary target gases.
  • Compact PCB Design: Suitable for integration into embedded electronics.
  • Reusable Sensor: Designed for repeated gas sensing measurements.

Technical Specifications

Specification Details
Product Model MQ-5
Sensor Type Combustible Gas Sensor
Sensor Technology Metal Oxide Semiconductor (MOS)
Sensing Material Tin Dioxide (SnO2)
Operating Voltage 5V DC
Primary Target Gases LPG, Natural Gas
Detectable Gases Propane, Butane, Methane, Town Gas
Typical Detection Range 200–10,000 ppm for specified combustible gases
Output Type Analog Voltage
Analog Output Variable, According to Gas Concentration
Sensitivity Adjustment Depends on Module Configuration
Sensor Heating Internal Heating Element
Preheating Required for Stable Measurements
PCB Dimensions Approximately 40 × 20mm
Interface Analog
Connection 3-Pin Interface

Pin Configuration

The supplied module description specifies a 3-pin interface.

Pin Description
VCC 5V DC Power Supply
GND Ground
OUT Analog Gas Sensor Output

Note: Some MQ-5 modules include four pins with separate analog (AO) and digital (DO) outputs. The pin configuration above refers to the 3-pin version shown in the supplied product information. Verify the actual PCB labels before wiring.

Arduino UNO Connection Example

MQ-5 Pin Arduino UNO
VCC 5V
GND GND
OUT A0

The Arduino can read the analog output to monitor relative changes in combustible gas concentration.

ESP32 Connection Example

MQ-5 Pin ESP32
VCC 5V
GND GND
OUT GPIO34 Through Voltage Divider

Important: The MQ-5 operates at 5V, while ESP32 GPIO pins are designed for 3.3V logic. Use an appropriate voltage divider or signal conditioning circuit before connecting the analog output.

Raspberry Pi Compatibility

The MQ-5 can be used with Raspberry Pi boards for gas detection experiments.

Because Raspberry Pi boards do not provide built-in analog inputs, an external ADC such as the ADS1115 or MCP3008 is required.

Ensure the analog signal is scaled to the ADC's permitted input voltage range.

Applications

  • LPG detection experiments
  • Natural gas monitoring prototypes
  • Propane and butane sensing projects
  • Arduino and ESP32 gas monitoring
  • IoT combustible gas monitoring
  • Smart home automation experiments
  • Environmental sensing projects
  • Industrial gas detection demonstrations
  • Educational electronics and STEM projects
  • Robotics and embedded sensor systems
  • Automated ventilation research

Important Notes

  • The MQ-5 is primarily intended for LPG and natural gas detection.
  • It responds to multiple combustible gases and cannot reliably identify individual gases in a mixed environment.
  • The analog output does not directly indicate gas concentration in ppm. Accurate measurements require calibration.
  • The sensor requires preheating before stable measurements can be obtained.
  • Initial conditioning may require extended operation according to manufacturer recommendations.
  • Temperature, humidity, and airflow may affect sensor readings.
  • The internal heating element becomes warm during operation.
  • The sensor is designed for 5V operation and should not be powered directly from a 3.3V supply.
  • Use appropriate voltage scaling when connecting the output to ESP32 or Raspberry Pi interfaces.
  • The module is intended for educational, experimental, and non-safety-critical monitoring applications.
  • This sensor is not a certified gas leakage alarm and must not replace approved combustible gas safety detectors.

Package Includes

  • 1 × MQ-5 LPG and Natural Gas Sensor Module