

The MQ-8 is a hydrogen gas sensor manufactured by Flying Fish, designed to detect hydrogen gas concentrations in the air. It operates on the principle of resistive change, where the sensor's resistance varies in the presence of hydrogen gas. The MQ-8 provides an analog output signal proportional to the detected gas concentration, making it suitable for a wide range of applications.








The MQ-8 sensor is designed for reliable and accurate hydrogen gas detection. Below are its key technical details:
| Parameter | Value |
|---|---|
| Manufacturer | Flying Fish |
| Part ID | MQ-8 |
| Target Gas | Hydrogen (H₂) |
| Operating Voltage | 5V DC |
| Load Resistance (RL) | Adjustable (typically 10 kΩ) |
| Heater Voltage (VH) | 5V ± 0.2V |
| Heater Power Consumption | ≤ 800 mW |
| Detection Range | 100 ppm to 10,000 ppm |
| Preheat Time | ≥ 24 hours (for stable readings) |
| Analog Output | 0V to 5V (proportional to gas concentration) |
| Operating Temperature | -20°C to 50°C |
| Humidity Range | ≤ 95% RH |
| Dimensions | 32mm x 20mm x 22mm |
The MQ-8 sensor module typically comes with a 4-pin interface. Below is the pin configuration:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (5V DC) |
| 2 | GND | Ground pin |
| 3 | AOUT | Analog output pin (provides voltage proportional to gas concentration) |
| 4 | DOUT | Digital output pin (high/low signal based on threshold) |
Below is an example of how to interface the MQ-8 sensor with an Arduino UNO to read the analog output:
// MQ-8 Hydrogen Gas Sensor Example Code
// Connect AOUT to Arduino analog pin A0
// Connect VCC to 5V and GND to GND
const int analogPin = A0; // Analog pin connected to AOUT
int sensorValue = 0; // Variable to store sensor reading
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
Serial.println("MQ-8 Hydrogen Gas Sensor Test");
}
void loop() {
// Read the analog value from the sensor
sensorValue = analogRead(analogPin);
// Convert the analog value to voltage (assuming 5V reference)
float voltage = sensorValue * (5.0 / 1023.0);
// Print the sensor value and voltage to the Serial Monitor
Serial.print("Sensor Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
No Output Signal:
Unstable Readings:
False Alarms:
Low Sensitivity:
Q1: Can the MQ-8 detect gases other than hydrogen?
A1: While the MQ-8 is optimized for hydrogen gas, it may respond to other gases. However, its sensitivity and accuracy for non-hydrogen gases are not guaranteed.
Q2: How do I calibrate the MQ-8 sensor?
A2: Expose the sensor to a known concentration of hydrogen gas and adjust the load resistor or threshold potentiometer to match the expected output.
Q3: Can I use the MQ-8 with a 3.3V microcontroller?
A3: The MQ-8 requires a 5V power supply for the heater. However, you can use a voltage divider or level shifter to interface the analog output with a 3.3V microcontroller.
Q4: How long does the MQ-8 sensor last?
A4: The sensor's lifespan depends on usage and environmental conditions. Under normal conditions, it can last several years.