What it is
The ShillehTek MQ-2 Flammable Gas & Smoke Sensor Module for Arduino Safety is an Arduino-ready sensor module used in DIY safety, monitoring, and STEM projects to detect smoke and common flammable gases so your code can trigger an alert, turn on a fan, or log changes over time. It’s intended for prototyping and learning (not a replacement for certified home safety devices).
Pins
Pin names and order can vary by MQ-2 module revision. Refer to the silkscreen labels on the board/module and the listing photos for exact pin names, then match them to your Arduino or Raspberry Pi GPIO wiring and your code’s selected input type.
Technical Specifications
| Item | Details |
|---|---|
| Product type | MQ-2 flammable gas & smoke sensor module (Arduino-ready) |
| Detected targets | Smoke and common flammable gases (see datasheet / listing for details) |
| Output signal | Readable output signal for microcontrollers (exact type varies by module revision) |
| Pinout / connector labels | See listing photos and silkscreen on the module |
| Recommended use | DIY safety demos, leak-detection prototypes, STEM learning |
Frequently Asked Questions
How do I connect the MQ-2 sensor module to an Arduino?
Use the silkscreen pin labels on your module and the product photos to identify power, ground, and the signal output(s). Then connect the signal to a suitable Arduino input and read it in your sketch to trigger an alert or control a fan.
Can I use the ShillehTek MQ-2 module with Raspberry Pi GPIO?
Yes—makers commonly interface MQ-series sensor modules with Raspberry Pi for monitoring projects. Confirm your specific module’s output type and pin labels from the board silkscreen and listing photos before wiring it to GPIO.
What gases does the MQ-2 detect?
This module is intended for detecting smoke and common flammable gases for DIY demos. For the full target list and characteristics, consult the MQ-2 datasheet for the sensing element used on your module revision.
Is the MQ-2 sensor accurate enough for home safety alarms?
No. This is a hobby/prototyping sensor for Arduino projects and learning, and it should not replace certified smoke or gas alarm devices in real safety installations.
Do I need calibration for an MQ-2 leak detection project?
For repeatable results, you typically need to establish your own baseline and thresholds in code for your environment and module. Use it for trend/trigger behavior rather than relying on it as a calibrated measurement instrument unless you follow the sensor’s datasheet procedure.