MQ-9 - Gas Sensor (CO, CH₄, LPG)

The MQ-9 is a gas sensor that detects carbon monoxide (CO), methane (CH₄), and liquefied petroleum gas (LPG). It uses a tin dioxide (SnO₂) sensing layer whose conductivity changes with gas concentration. Designed for indoor air quality and gas leak detection, it offers high sensitivity, fast response, and a simple analog output. The MQ-9 operates at 5V and is commonly used with microcontrollers like Arduino.

MQ-9 - Gas Sensor
Fig.: MQ-9 - Gas Sensor

Technical Specifications

Detection Gases: Carbon monoxide (CO),
Methane (CH₄),
Liquefied Petroleum Gas (LPG, primarily propane (C₃H₈) and butane (C₄H₁₀))
Detection Range: CO: 10ppm to 1000ppm
CH₄/LPG: 100ppm to 10000ppm
Working Voltage: 5V
Heater Voltage (High/Low): 5V / 1.5V
Heater Resistance: 33Ω ±5%
Sensing Resistance: 2kΩ to 20kΩ (in 100ppm CO)
Heating Consumption: <340mW
Operating Temperature: -20°C to 50°C
Relative Humidity: <95% RH
Dimensions (L×W×H): 32mm × 20mm × 22mm
Weight: ~15g

📄 MQ-9 datasheet (180 kB)

Important notes

Please keep the following notes in mind before using/connecting the MQ-9:

Sensor initialization

Connections

Terminal diagram of the MQ-9 Gas Sensor Module
Fig.: Terminal diagram of the MQ-9 Gas Sensor Module
Pin name Description
VCC Power supply (5V)
GND Ground connection
AO Analog output
DO Digital output

Digital Output DO

Using the potentiometer on the back of the board, you can set the threshold at which the DO output switches from HIGH to LOW. The DO pin can be connected directly to a microcontroller or a development kit.

Analog Output AO

The sensor also has an AO analog output, which should be connected to the A/D converter (e.g.: analog input on Arduino). This allows for more accurate determination of the alcohol content by measuring the proportional voltage signal.

Used Components

Setup & Programming

Due to the similarities in the module's structure and connections, all circuit diagrams and codes can be found under MQ-3.

Testing the sensor

Carbon monoxide (CO) is highly toxic, and even small amounts can be life-threatening so we will not use it here for testing the sensor!

Since the MQ-9 gas sensor can also detect methane (CH₄) and LPG (butane/propane), you can test it using safer, everyday sources:

Lighter Gas (Butane/Propane)

Release a small puff of standard lighter gas near the sensor (without igniting it!)

Alcohol or Rubbing Alcohol

Hold a tissue soaked with isopropyl alcohol or ethanol-based disinfectant near the sensor.

Last edited by Christian Grieger on 2025-05-12
X
  1. [top]
  2. Technical Specifications
  3. Important notes
  4. Connections
  5. Used Components
  6. Setup & Programming
  7. Testing the sensor