{"product_id":"mq-2-gas-sensor-module-for-h2-lpg-ch4-co-smoke-or-propane-detector-module","title":"MQ-2 Gas Sensor Module For H2, LPG, CH4, CO, Smoke or Propane Detector Module","description":"\u003ch2\u003eMQ-2 Gas Sensor Module \u003c\/h2\u003e\n\u003cdiv\u003e\u003cspan\u003eThe MQ-2 Smoke LPG Butane Hydrogen Gas Sensor Detector Module is useful for gas leakage detection (home and industry). It is suitable for detecting H2, LPG, CH4, CO, Alcohol, Smoke, or Propane. Due to its high sensitivity and fast response time, measurements can be taken as soon as possible. The sensitivity of the sensor can be adjusted by the potentiometer\u003c\/span\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cspan\u003e\u003cbr\u003e\u003c\/span\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cspan\u003eThis MQ-2 Smoke and gas detector module works with 5V power, making it easy to connect to most projects. You can get two types of readings from it—an analog output, which gives you a range of values (0V to 5V) based on the gas level, or a digital output that’s either on (5V) or off (0V). \u003c\/span\u003e\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cspan\u003e\u003c\/span\u003e\u003cbr\u003e\n\u003c\/div\u003e\n\u003cdiv\u003e\n\u003cspan\u003e\u003c\/span\u003e\u003cbr\u003e\n\u003c\/div\u003e\n\u003cp\u003eCheck out the entire range of \u003ca title=\"Gas Sensors\" href=\"https:\/\/robocraze.com\/collections\/gas-sensor\" target=\"_blank\"\u003eGas Sensors\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp\u003eAlso explore the exclusive collection for \u003ca href=\"https:\/\/robocraze.com\/collections\/sensors\"\u003e\u003cspan\u003e\u003cstrong\u003eSensors\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e.\u003cbr\u003e\u003c\/p\u003e\n\u003ch2\u003eApplications:\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eSafety of home\u003c\/li\u003e\n\u003cli\u003eControl of air quality\u003c\/li\u003e\n\u003cli\u003eMeasurement of gas level\u003c\/li\u003e\n\u003cli\u003eGas leakage alarms\u003c\/li\u003e\n\u003cli\u003eIoT safety\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eMQ-2 Gas Sensor Module – Quick Start Guide\u003c\/h2\u003e\n\u003ch3\u003eWiring Guide\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eConnect \u003cstrong\u003eVCC\u003c\/strong\u003e to Arduino 5 V.\u003c\/li\u003e\n\u003cli\u003eConnect \u003cstrong\u003eGND\u003c\/strong\u003e to Arduino GND.\u003c\/li\u003e\n\u003cli\u003eConnect \u003cstrong\u003eA0\u003c\/strong\u003e (analog output) to Arduino analog pin A0.\u003c\/li\u003e\n\u003cli\u003eOptional: Connect \u003cstrong\u003eD0\u003c\/strong\u003e (digital output) to Arduino digital pin (e.g., D2) for threshold detection.\u003c\/li\u003e\n\u003cli\u003eAllow the sensor to pre-heat for a few minutes before use.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch3\u003eArduino Code Example – Analog Read\u003c\/h3\u003e\n\u003cpre\u003e#define sensorPin A0    \/\/ analog input pin for MQ-2\nint sensorValue = 0;\n\nvoid setup() {\n  Serial.begin(9600);\n  Serial.println(\"MQ-2 Gas Sensor Test\");\n  delay(2000);  \/\/ sensor stabilisation\n}\n\nvoid loop() {\n  sensorValue = analogRead(sensorPin);\n  Serial.print(\"Gas Sensor Reading: \");\n  Serial.println(sensorValue);\n\n  if (sensorValue \u0026gt; 400) {   \/\/ adjust threshold as needed\n    Serial.println(\"\u0026gt;\u0026gt; Gas\/Smoke Detected! \u0026lt;\u0026lt;\");\n  }\n\n  delay(1000);\n}\n\u003c\/pre\u003e\n\u003ch3\u003eUsage Tips\u003c\/h3\u003e\n\u003cul\u003e\n\u003cli\u003eHigher sensor values indicate higher gas concentration.\u003c\/li\u003e\n\u003cli\u003eAdjust the threshold depending on your environment and calibration.\u003c\/li\u003e\n\u003cli\u003eThe digital output (D0) can be used for simple detection logic.\u003c\/li\u003e\n\u003cli\u003eEnsure good ventilation and safety when testing with flammable gases.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eMQ-2 vs MQ-3 vs MQ-7 – Gas Sensor Comparison\u003c\/h2\u003e\n\u003ctable cellspacing=\"0\" cellpadding=\"8\" border=\"1\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eFeature\u003c\/th\u003e\n\u003cth\u003eMQ-2\u003c\/th\u003e\n\u003cth\u003eMQ-3\u003c\/th\u003e\n\u003cth\u003eMQ-7\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eMain target gases\u003c\/td\u003e\n\u003ctd\u003eCombustible gases \u0026amp; smoke (LPG, propane, methane, hydrogen, etc.)\u003c\/td\u003e\n\u003ctd\u003eAlcohol\/ethanol vapour (also benzine, smoke to lesser extent)\u003c\/td\u003e\n\u003ctd\u003eCarbon monoxide (CO) primarily\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eTypical operation voltage\u003c\/td\u003e\n\u003ctd\u003e5 V heater standard\u003c\/td\u003e\n\u003ctd\u003e5 V heater standard\u003c\/td\u003e\n\u003ctd\u003eComplex heating cycle (e.g., 5 V then 1.4 V low-heater mode) for CO detection\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSpecific usage notes\u003c\/td\u003e\n\u003ctd\u003eGeneral-purpose gas and smoke sensor; wide detection scope but less selective\u003c\/td\u003e\n\u003ctd\u003eMore selective toward alcohol vapour; used in breathalyzers and alcohol detection systems\u003c\/td\u003e\n\u003ctd\u003eSpecialised for CO; requires heating cycle and calibration for accurate measurement\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCalibration \u0026amp; complexity\u003c\/td\u003e\n\u003ctd\u003eRelatively simple; heat up, read analog output\u003c\/td\u003e\n\u003ctd\u003eSimple; read analog output, target is alcohol so environment matters\u003c\/td\u003e\n\u003ctd\u003eMore complex; proper heater cycling and careful calibration needed\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBest for\u003c\/td\u003e\n\u003ctd\u003eHome\/DIY gas leak \u0026amp; smoke detection projects\u003c\/td\u003e\n\u003ctd\u003eProjects detecting alcohol vapour (e.g., breath analysis, security systems)\u003c\/td\u003e\n\u003ctd\u003eApplications where CO detection is important (ventilation, safety, industrial)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eConsiderations \/ trade-offs\u003c\/td\u003e\n\u003ctd\u003eNot very selective; may trigger for a range of combustible gases \u0026amp; smoke\u003c\/td\u003e\n\u003ctd\u003eMay also respond to other vapours or solvents, not purely alcohol\u003c\/td\u003e\n\u003ctd\u003eHigher cost, more complex setup, slower response; careful calibration required\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch2\u003eMQ Gas Sensors – Troubleshooting Tips\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eFalse Readings:\u003c\/strong\u003e Ensure proper ventilation and avoid placing the sensor near strong fumes, alcohol, or other interfering gases if you want specific detection.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eCalibration Issues:\u003c\/strong\u003e Pre-heat the sensor for the recommended time (typically a few minutes to hours depending on sensor) before taking readings.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eThreshold Setting:\u003c\/strong\u003e Adjust threshold values in your code carefully; raw analog readings vary between sensors even of the same type.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eEnvironmental Factors:\u003c\/strong\u003e Temperature and humidity affect readings; use in stable environments or implement compensation if needed.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003ePower Supply Stability:\u003c\/strong\u003e Use a stable 5 V supply; fluctuations can cause erratic readings.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eSensor Age \/ Wear:\u003c\/strong\u003e MQ sensors degrade over time; if readings are inconsistent, consider replacing the sensor.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"9ine Electronics","offers":[{"title":"Default Title","offer_id":50484226326787,"sku":null,"price":106.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0844\/1915\/0083\/files\/14.2.jpg?v=1796034161","url":"https:\/\/9ineelectronics.com\/products\/mq-2-gas-sensor-module-for-h2-lpg-ch4-co-smoke-or-propane-detector-module","provider":"9ine Electronics","version":"1.0","type":"link"}