I got a MQ - 4 sensor and breakout board,
the data sheet of the breakout board is like that:
GND -------------- gnd of arduino
B1 ---------------- ???????
H1----------------????????
A1 ----------------?????????
Please if you know which pin i should connect them please replay
i searched internet and read the datasheet but i couldn't get any information for that pins.
and i got this code online for reading value:
int sensorValue;
void setup()
{
Serial.begin(9600); // sets the serial port to 9600
}
void loop()
{
sensorValue = analogRead(0); // read analog input pin 0
Serial.println(sensorValue, DEC); // prints the value read
delay(100); // wait 100ms for next reading
}
best regards