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.


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

More Documents