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