








The MQ-2 Smoke and Flammable Gas Sensor is a versatile gas detection module capable of sensing LPG, propane, methane, hydrogen, alcohol, and smoke. Built around the MQ-2 sensor with an LM393 comparator, it offers both analog and digital outputs for easy interfacing with Arduino, Raspberry Pi, and ESP32. With a measuring range up to 10,000 ppm, 5V operation, and high sensitivity, it is ideal for gas leak detectors, smoke alarms, fire safety systems, and home automation projects.
حساس MQ-2 للدخان والغازات القابلة للاشتعال هو وحدة كشف غازات متعددة الاستخدامات، قادرة على استشعار غاز LPG، والبروبان، والميثان، والهيدروجين، والكحول، والدخان. يعتمد على شريحة استشعار MQ-2 مع مقارن LM393، ويوفر خرجاً تناظرياً ورقمياً لسهولة الاتصال مع Arduino و Raspberry Pi و ESP32. بنطاق قياس يصل إلى 10,000 جزء بالمليون وجهد تشغيل 5 فولت وحساسية عالية، يُعدّ مثالياً لـ كاشفات تسرب الغاز، وإنذارات الدخان، وأنظمة السلامة من الحرائق، ومشاريع أتمتة المنزل.
The MQ-2 Gas Sensor Module is one of the most popular and cost-effective gas detection sensors used in DIY electronics, home safety projects, and educational experiments. It is designed to detect a wide variety of flammable gases and smoke, making it an essential component for any fire safety, gas leak monitoring, or air quality system.
The heart of the module is the MQ-2 sensor, which uses Tin Dioxide (SnO₂) as its sensitive material. In clean air, SnO₂ has relatively low conductivity. However, when combustible gases (such as LPG, propane, methane, hydrogen, alcohol, or smoke) are present, the sensor's conductivity increases proportionally with the gas concentration. This change in conductivity is converted into an analog voltage signal that can be read directly by a microcontroller's ADC pin.
The module integrates an LM393 voltage comparator, which adds a digital output (DOUT) triggered when the gas concentration crosses a user-defined threshold (adjustable via the onboard multi-turn potentiometer). This means the MQ-2 module can be used in two modes simultaneously:
The module also includes a power LED and a status/threshold LED, making it easy to test and visualize sensor activity. With its standard 4-pin interface (VCC, GND, DO, AO) and 2.54mm pitch goldpin connectors, the module connects effortlessly to Arduino, ESP32, ESP8266, STM32, Raspberry Pi, and PIC microcontrollers.
Note: The MQ-2 sensor requires a preheating period of 24–48 hours when first powered on to deliver accurate and stable readings.