Analog_Gas_Sensor_SKU_SEN0127 - jimaobian/DFRobotWiki GitHub Wiki

Introduction
The analog gas sensor - MQ2 is used in gas leakage detecting equipments in consumer and industry markets, this sensor is suitable for detecting LPG, i-butane, propane, methane ,alcohol, Hydrogen, smoke.It has a high sensitivity and fast response time.And the sensitivity can be adjusted by the potentiometer.
Specification
- Power supply needs: 5V
 - Interface type: Analog
 - Wide detecting scope
 - Fast response and High sensitivity
 - Simple drive circuit
 - Stable and long life
 - Size:36.4x26.6mm
 
Tutorial
Connecting Diagram

Sample Code
///Arduino Sample Code
void setup()
{
  Serial.begin(9600); //Set serial baud rate to 9600 bps
}
void loop()
{
int val;
val=analogRead(0);//Read Gas value from analog 0
Serial.println(val,DEC);//Print the value to serial port
delay(100);
}
Result

Trouble shooting
More question and cool idea, visit DFRobot Forum
More
- Version history: Analog Gas Sensor(MQ2) V1
 
 buy from dfrobot store or dfrobot distributor list
category: Product Manual category: SEN Series category: Sensor