Analog_Gas_Sensor_MQ5___SKU_SEN0130_-DFRobot

Introduction

The MQ5 is used in gas leakage detecting equipment in consumer and industry applications,this sensor is suitable for detecting LPG, natural gas, coal gas. Avoid the noise of alcohol, cooking fumes and cigarette smoke. The sensitivity can be adjusted by the potentiometer.

Specification

Pin Definition

  1. Signal Output
  2. GND
  3. Power

Analog Sensor Pin Definition

Connection Diagram

Analog sensor 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);
}

More Documents

DFshopping_car1.png Get LPG Gas Sensor(MQ5) from DFRobot Store or DFRobot Distributor.

Category: DFRobot > Sensors & Modules > Sensors > Air Sensors

category: Product Manual category: DFR Series category: Sensors category:source category:Diagram

Turn to the Top