This MQ gas sensor module lets you add gas detection to your Arduino or ESP32 projects. Each module focuses on certain gases. This gives you a specific tool for what you need. It works by checking how much its electrical resistance changes. Features and Benefits
- Many sensor types - Pick the right sensor. For example, MQ-2 for smoke, MQ-3 for alcohol, or MQ-7 for carbon monoxide.
- Both analog and digital outputs - Use the analog pin for a changing reading. Use the digital pin for a simple on/off alert.
- Built-in sensitivity knob - A small dial lets you set the exact gas level for the digital alert.
- Runs on 5V - It connects directly to the power and input pins of an Arduino Uno and similar microcontrollers. Applications
- Air Quality Projects - The MQ-135 air quality sensor can find ammonia, benzene, and smoke. This helps check indoor air.
- Safety Alarms - Build a gas leak alarm with an MQ-9 sensor. It detects carbon monoxide and flammable gases like LPG.
- Hobby Electronics - Wire up an MQ-3 alcohol sensor module. You can make a personal breathalyzer or other interactive items.
What You Need
To test a gas sensor, such as this MQ-2 Gas Sensor Module, you will need a multimeter capable of measuring microamperes ($\mu\text{A}$). For safety, ensure you have appropriate personal protective equipment, including work gloves. A wiring diagram for your specific Arduino project will also be beneficial for understanding the circuit layout. This module is a resistance sensor, which detects gases like smoke, LPG, and butane by changes in electrical resistance. Understanding how electrochemical gas sensors work involves detecting gas concentration via chemical reactions that produce a measurable electrical signal.
Method 1: Testing Active Signal Strength ($\mu\text{A}$)
This method helps determine if your gas sensor is actively responding to the presence of detected gases. While the MQ-2 is a general gas sensor and not a flame sensor found in a gas furnace, the principle of testing electrical current remains similar. A flame sensor on a gas furnace works by detecting the presence of a flame to ensure safe operation. This MQ-2 Gas Sensor Module, designed for Arduino projects, functions as a gas sensor by detecting changes in resistance when exposed to gases such as smoke, LPG, and butane.
Material: Metal. Compatibility: Arduino. Gases Detected: Smoke, LPG, Butane, Hydrogen. Theory: Resistance Sensor. Type: Gas Sensor. Material: Metal. Operating Voltage: 5V DC. Detection Range (MQ-135): 10 to 1000 ppm. Detection Range (MQ-2): 300 to 10000 ppm. Output Type: Analog and Digital. Compatibility: Arduino. Operating Temperature: -20°C to 50°C. Operating Current: 150mA (typical). Detected Gases (MQ-135): Ammonia, Sulfide, Benzene vapor, Smoke, Harmful gases. Detected Gases (MQ-2): LPG, Butane, Propane, Methane, Alcohol, Hydrogen, Smoke. Product Type: Gas Sensor Module. Recovery Time: < 30 seconds. Response Time: < 10 seconds. Sensor Models: MQ-2, MQ2, MQ135, MQ9, MQ3, MQ7, MQ-135. Theory: Resistance Sensor. Q: Which specific gases does the MQ-2 model detect? A: The MQ-2 is a general-purpose sensor that is most sensitive to combustible gases. It's mainly used to detect LPG, butane, propane, methane, and hydrogen, and it will also react to smoke.. Q: How precise is this gas sensor for measuring exact concentrations? A: These modules are best for detection, like in an alarm system, rather than for precise scientific measurement. The analog output gives you a relative idea of concentration, but for exact parts-per-million readings, you would need to perform a calibration procedure with a known gas source.. Q: Can I connect this gas sensor module directly to my Arduino or Raspberry Pi? A: Yes, it's designed for that. The module runs on 5V and has two main outputs: an analog pin (A0) that gives a variable voltage based on gas level, and a digital pin (D0) that goes high when the gas passes a threshold you set with the small blue potentiometer on the board.. Q: What is the expected lifespan of these MQ sensors? A: Under normal operating conditions, the sensing element itself can last for several years. We offer a standard 30-day return window for any module that doesn't work correctly right out of the box.. Q: What is the main difference between the MQ-135, MQ-7, and MQ-2 modules? A: Each sensor in the MQ series is optimized for different types of gases. The MQ-2 is for combustible gases, the MQ-7 is specifically for carbon monoxide, and the MQ-135 is an air quality sensor for things like ammonia, benzene, and alcohol vapor..