#define MQ2_ANA A1
#define MQ2_DIG 2
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(MQ2_ANA, INPUT);
pinMode(MQ2_DIG, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("Analog: ");
Serial.println(analogRead(MQ2_ANA));
Serial.print("Digital: ");
Serial.println(digitalRead(MQ2_DIG));
delay(1000);
}