Hi
I bought the sensor MQ4.
And I try get analog value , but can't it.
My try code are,
#define analogInDatPin 0
int sensorValue = 0;
void setup()
{Serial.begin(9600);}
void loop()
{
sensorValue = analogRead(analogInDatPin);
Serial.print("sensor test value = ");
Serial.println(1023-sensorValue);
delay(300);
}
I tried this and got the random number.