DFRobot_Gas_Sensor_(SKU_DFR0049) - jimaobian/DFRobotWiki GitHub Wiki

DFRobot Gas Sensor (SKU:DFR0049)

Introduction

The gas sensor detects Hydrogen gases. It is able to give alarms when the smoke/gas leaks. You can adjust the sensitivity with the potentiometer.

This sensor will return an analog value which represents the intensity of the gas being detected.

Specification

  • Type: Analog
  • Detector: QM-NG1
  • Power supply needs: 5V
  • Current: 100mA

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

image:nextredirectltr.pngGo shopping dfrobot gas sensor (sku:dfr0049)

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