Sensors

MQ-2

Low-cost combustible gas sensor module frequently used in beginner gas detection demos.

China-madeWinsenActiveModerate

Best For

Projects needing Gas and Analog with a commonly available sensors part.

Avoid If

You need production-grade certainty without checking the exact module vendor, pinout, and library maintenance status.

Quick Decision Notes

MQ-2 is indexed as a sensors part from Winsen. ChipScout tracks it by practical maker-facing dimensions: interfaces, library readiness, estimated price, field-level sources, and whether the page is strong enough for selection rather than only lookup.

Technical Specifications

MeasurementCombustible gasSource: Winsen
InterfaceAnalog / digital moduleSource: Winsen
HeaterRequiredSource: Winsen
Working Voltage5VSource: Winsen

Common Use Cases

  • Maker prototypes
  • Low-cost modules
  • Educational hardware

Known Issues

  • Breakout boards may use different pin labels or regulator choices
  • Clone modules can differ from the original datasheet part

Interfaces and Library Support

Interfaces
ADCGPIO
Wireless
None
Voltage
3.3V
Libraries
Arduino verifiedMicroPython pending
Data Integrity68% confidence
Sourcehttps://www.winsen-sensor.com/
Last verified2026-05-20
Core specsVerified
PinoutMissing
Library supportChecked
Price rangePresent
Found a wrong spec?

Every field is meant to be source-backed. Corrections should include a datasheet URL, vendor page, module photo, or reproducible library test.

Submit correction

Source Resources

Pinout Table

VCC3.3VPower the module from a rail that matches the breakout board, not just the bare IC.
GNDCommon groundConnect ground between the controller, sensor/module, and external power supply.
SignalMCU GPIO / ADCUse a digital input, output, PWM, or ADC pin based on the module output type.

Pinout is not yet source-verified. Use the table as an integration checklist, then confirm exact pins against the module vendor page before wiring hardware.

Common Wiring

VCC

Power the module from a rail that matches the breakout board, not just the bare IC.

GND

Connect ground between the controller, sensor/module, and external power supply.

Signal

Use a digital input, output, PWM, or ADC pin based on the module output type.

Arduino Example

void setup() {
  Serial.begin(115200);
  Serial.println("MQ-2 GPIO wiring smoke test");
}

void loop() {
  // Replace with the maintained MQ-2 library or module protocol.
  Serial.println("Read or toggle the connected signal pin.");
  delay(1000);
}

MicroPython Example

MicroPython support is pending. Treat community scripts as prototypes until a maintained driver is linked and tested on a known development board.

Recommended Development Boards

ESP32-C3 development board

Low-cost Wi-Fi/BLE board with enough interfaces for most sensors and modules.

Arduino Uno R4 / compatible

Good baseline for beginner wiring and library validation.

Raspberry Pi Pico W

Practical MicroPython target for I2C, SPI, UART, PWM, and ADC experiments.

Alternative Model Reasons

ACS712SensorsThis alternative currently has stronger source coverage and confidence in ChipScout.
ADXL345SensorsChoose this when MicroPython support is required for fast prototyping.
AHT10SensorsChoose this when MicroPython support is required for fast prototyping.
AHT20SensorsChoose this when MicroPython support is required for fast prototyping.

Common Questions

What is MQ-2 best used for?

Projects needing Gas and Analog with a commonly available sensors part.

Does MQ-2 support Arduino or MicroPython?

MQ-2 has verified Arduino support and MicroPython support pending verification.

What interfaces does MQ-2 use?

MQ-2 lists ADC, GPIO; wireless support is no wireless protocol.

Compare MQ-2 vs ACS712

Alternatives and Related Parts