Analog Gas Sensor(MQ2) SKU:SEN0127


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.



Connecting Diagram

Analog Gas Sensor

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



Trouble shooting

More question and cool idea, visit DFRobot Forum.

More Documents

DFshopping_car1.png Get Analog Gas Sensor(MQ2) from DFRobot Store or DFRobot Distributor.

category: Product Manual category: SEN Series category: Sensor category: Diagram category: DFRobot

Turn to the Top