MQ-8 - Gas Sensor (Hydrogen)

The MQ-8 is a hydrogen (H₂) gas sensor designed for detecting hydrogen leaks. It uses a sensitive tin dioxide (SnO₂) layer that changes resistance based on hydrogen concentration. The sensor offers high sensitivity, fast response, and stability. Operating on 5V, it outputs analog and digital signals, making it compatible with microcontrollers like Arduino.

MQ-8 Gas Sensor Module
Fig.: MQ-8 Gas Sensor Module

Technical Specifications

Detection Range: 100ppm to 10000ppm
Operating Voltage: 5V DC
Heater Voltage: 5V ± 0.2V
Heater Power Consumption: ~800 mW
Preheat Time: 24h to 48h (initial), ~2 minutes (typical)
Response Time: ≤10 seconds
Recovery Time: ≤30 seconds
Operating Temperature: -20°C to 50°C
Humidity Range: ≤95% RH
Dimensions (L×W×H): 32mm × 20mm × 22mm

📄 MQ-8 datasheet (71 kB)

Important notes

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

Sensor initialization

Connections

Terminal diagram of the MQ-8 Gas Sensor Module
Fig.: Terminal diagram of the MQ-8 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

Avoid flames, sparks, or heat sources during testing — hydrogen is explosive at low concentrations!

Charging NiMH battery

Charging Nickel-Metal Hydride (NiMH) batteries releases small amounts of hydrogen gas, so you can place it nearby the sensor to detect hydrogen.

Hydrogen via electrolysis

Apply a 5-12V DC power source over two separated electrodes (e.g., stainless steel wires, graphite from pencil leads) in a glass of water with some dissolved salt (NaCl) in it. (see also: Electrolysis of water)

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