Analog_Gas_Sensor(MQ2)_(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
- Pin Definition: 1-Output 2-GND 3-VCC
- Wide detecting scope
- Fast response and High sensitivity
- Simple drive circuit
- Stable and long life
- Size: 40x20mm
Pin Definition
- Signal Output
- GND
- Power
Connection 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);
}
shopping analog gas sensor(mq2) (sku:dfr0127)
category: Product Manual category: DFR Series category: Sensors category:source category:Diagram