Gas sensor module Hydro MQ-8 is used to detect Hydro gas in the environment. High-sensitivity sensor with fast response, sensitivity adjustable by rheostat.
SPECIFICATIONS:
Documentation: MQ-8
Instruction for using MQ-8 with Arduino
Connection:
Arduino | Gas Sensor |
---|---|
5V | VCC |
GND | GND |
NC | DOUT |
Analog A0 | AOUT |
Code for MQ-8 sensor:
void setup()
{
Serial.begin(9600);
}
void loop()
{
float sensorVoltage;
float sensorValue;
sensorValue = analogRead(A0);
sensorVoltage = sensorValue/1024*5.0;
Serial.print("sensor voltage = ");
Serial.print(sensorVoltage);
Serial.println(" V");
delay(1000);
}
update
...