MQ-7 Gas Sensor For Carbon Monoxide Detector Module
π What this sensor is
The MQ-7 Gas Sensor Module is a low-cost carbon monoxide (CO) detector commonly used in Arduino and IoT projects.
π It detects:
π« Carbon Monoxide (CO) β a dangerous, odorless gas
π§ Core Concept (VERY IMPORTANT)
π This is a heating-type gas sensor (MQ series)
It works using a cyclic heating process:
π₯ High temperature β cleans sensor
π‘οΈ Low temperature β detects CO
β‘οΈ This makes it more selective to CO compared to other MQ sensors
βοΈ Key Specifications
Target Gas: Carbon Monoxide (CO)
Detection Range: ~20 β 2000 ppm
Operating Voltage: 5V
Output:
Analog (A0)
Digital (D0 with comparator)
Preheat Time: β₯ 24β48 hours (important!)
Heater Current: ~150 mA
β‘ Working Principle
Uses SnOβ (tin dioxide) sensing layer
CO gas reduces sensor resistance
Module converts it into voltage
π More CO β higher output signal
π Unique Feature (IMPORTANT)
π Unlike MQ-2 / MQ-135:
MQ-7 uses two-phase heating cycle:
5V heating (60s) β cleaning phase
1.4V heating (90s) β sensing phase
β‘οΈ Accurate readings only in low-temp phase
β οΈ Most modules donβt control this automatically
π You must handle it in code (advanced use)
π Pinout
VCC β 5V
GND β Ground
A0 β Analog output
D0 β Digital output (threshold adjustable)
π§ Output Behavior
| CO Level | Output |
|---|---|
| Low | Low voltage |
| Medium | Medium voltage |
| High | High voltage |
π Analog output is non-linear
π‘ Applications
π Home CO alarm systems
π₯ Fire detection
π Car exhaust monitoring
π Industrial safety
π€ Air quality projects
β οΈ Important Notes (VERY IMPORTANT)
β 1. Requires long preheating
Needs 24β48 hours initially
π Otherwise readings are unstable
β 2. Not highly accurate
Gives approximate ppm, not precise
Needs calibration
β 3. High power consumption
Heater uses significant current
π Not good for battery projects
β 4. Cross sensitivity
Also reacts to:
Hydrogen
Methane
π Not 100% CO selective
β 5. Temperature cycle control (advanced)
π For accurate CO detection:
Must control heater voltage cycle
β‘οΈ Otherwise readings are less reliable
π MQ-7 vs Other Sensors
| Sensor | Gas | Accuracy | Use |
|---|---|---|---|
| MQ-2 | Smoke/LPG | Low | General |
| MQ-135 | Air quality | Low | Basic AQ |
| MQ-7 | CO | Medium | CO detection |
| SCD40 | COβ | β High | Precise COβ |
π When to use this
Use MQ-7 if you want:
Low-cost CO detection
Basic safety systems
Arduino beginner projects
π When NOT to use
Avoid if:
You need precise ppm measurement
Battery-powered device
Professional safety system
π§ Final Understanding
π This sensor = βlow-cost carbon monoxide detectorβ
π Good for learning & basic projects, not industrial accuracy
π Pro Tip
π Better setup for air safety:
MQ-7 β CO detection
ENS160 β VOC + AQI
SHT41 β temperature + humidity
β‘οΈ Combined = complete air monitoring system π₯
