
This is an MQ-4 gas sensor module that detects methane and natural gas (CNG) in the air. It gives an analog output and a digital output with an adjustable threshold, and runs from a 5V supply. It suits Arduino gas leak projects, natural gas monitoring demos and student sensor experiments.
Overview
This is an MQ-4 gas sensor on a small breakout board. The MQ-4 is a semiconductor (metal oxide) sensor that responds mainly to methane, the main part of natural gas and biogas. When methane is in the air the sensor resistance drops, and the board turns that change into a voltage that a microcontroller can read. The board in the photo has the metal-mesh sensor can marked MQ-4, a blue trimmer potentiometer on the side and four pin holes at the top edge for the VCC, GND, DO and AO connections.
The photo shows the four pin holes without a header soldered in, so you may need to solder your own header or wires to use the board. The datasheet detection range is roughly 200 to 10000 ppm for methane, and some sources give 300 ppm as the lower end. The AO pin gives an analog voltage that rises with gas concentration, and the DO pin switches when the level passes the threshold set by the trimmer, using a comparator on most boards.
To start, power the module from 5V, connect AO to an analog pin on the Arduino and read it with analogRead. The sensor has a built-in heater, so it draws some current and gets warm. It needs warm-up time before the readings settle, and the datasheet recommends a long preheat. Raw readings are not calibrated, so a calibration step is needed to get ppm values.
This is a hobby sensor for learning and prototypes. Do not rely on it as the only safety alarm for gas leaks. Compared with the MQ-6, which is tuned for LPG and butane, the MQ-4 is the better choice for methane and natural gas.
| Sensor | MQ-4 (metal oxide semiconductor) |
|---|---|
| Target Gases | Methane (CH4), natural gas, CNG |
| Detection Range | About 200 to 10000 ppm (CH4) |
| Supply Voltage | 5V DC |
| Heater Voltage | 5V |
| Outputs | Analog (AO) and digital (DO) |
| Digital Threshold | Adjustable with the trimmer potentiometer |
| Connections | 4 pin holes (VCC, GND, DO, AO) |
| Heater | Built in, needs warm-up time |
| Board Colour | Blue |
FAQ
The MQ4 methane gas sensor module costs ৳145 at DazzleVolt. We deliver in Chittagong and nationwide.
It reacts mainly to methane, so it suits natural gas and biogas. It cannot tell gases apart, it only shows that a gas it responds to is present.
The MQ-4 is tuned for methane and natural gas. The MQ-6 is tuned for LPG and butane. Choose the sensor that matches the gas you want to detect.
The photo shows four pin holes without a header, so you may need to solder a pin header or wires to them. Check the board marking for the pin names.
Use AO to read the gas level as a number with analogRead. Use DO for a simple on and off alarm, and turn the trimmer to set the level at which it switches.
No. This is a hobby sensor for learning and prototypes. It is not a certified gas detector, so do not rely on it alone for safety.
Customer feedback
── More from Gas Sensor ──