MQ-4 Methane Gas Sensor Module for Arduino & DIY - Compoden
Open this project in the Soldr app → What is Soldr.ai → wiring, code and test steps for exactly these parts
MQ-4 Methane Gas Sensor Module
The MQ-4 is a semiconductor gas sensor module that responds to methane (CH4) and natural gas. It provides an analog output that rises with gas concentration, for learning projects and data logging. It is not a certified gas detector. Its high sensitivity to methane and quick response time allow for early detection of dangerous gas levels.
Key Specifications
| Specification | Value |
|---|---|
| Operating Voltage | 5V DC |
| Detection Gas | Methane (CH4) |
| Concentration Range | 200 - 10000 ppm |
| Preheat Time | ~2 minutes |
| Output Type | Analog (0-5V) |
| Heater Consumption | ≤750mW |
What You Can Build With This
- Methane reading display with an LED threshold indicator
- IoT natural gas monitor using ESP8266
- Smart kitchen safety system with exhaust fan control
- Arduino-based gas level data logger
Compatibility
Compatible with any microcontroller board that reads analog voltage, including Arduino Uno, Nano, Mega, ESP32, and Raspberry Pi (with ADC). Operates at 5V; for 3.3V logic, use a voltage divider or logic level converter. Pairs well with relay modules for automatic shutoff valves.
Wiring Notes
Connect VCC to 5V, GND to ground, and AOUT to an analog input pin. The sensor draws up to 150 mA during preheat; ensure the power supply can handle the surge. For stable readings, let it warm up for 2 minutes before use.
Is this compatible with Arduino Uno?
Yes, the MQ-4 outputs an analog voltage that can be read directly by any Arduino Uno analog pin. Use a 10K pull-down resistor on the output for cleaner readings.
How long does the sensor need to warm up?
The MQ-4 requires a preheat time of about 2 minutes to stabilize readings. During this time, the heater element reaches its operating temperature.
Can it detect LPG?
The MQ-4 is primarily sensitive to methane, but it can also respond to LPG, though with lower sensitivity. For accurate LPG detection, consider the MQ-6 sensor.
Free Setup Handoff Document Included
Every Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.
Ask Soldr above what you can build with this — it knows every Compoden kit this part appears in.
Shipping Information
- Prepaid Orders: ₹45 for orders up to ₹1,999, FREE shipping above ₹1,999
- COD Orders: ₹45 shipping for orders up to ₹1,999, FREE shipping above ₹1,999. COD available.
- Delivery Timeline: Dispatch in 3-7 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items