Hi everyone, I'm working on aproject using the MQ5 gas sensor, and I'd like to know whether I can "ask" for the data to the sensor every time, or it has a kind of limit every certain time.
You know, some sensors, like DHT11 cannot give you data in more than 5 seconds, otherwise, you get wrong data
Let me add the program I did, where I ask to the sensor to make 10 readings in 1 second. I just want to know if the time I'm using is either too short, or the readings I'm asking are also too many, since the datasheet is not providing the info
Thanks in advance
void medicionGas()
{
unsigned long tempRefCont = millis();
while ((millis() - tempRefCont) <= 1000)
{
for(int i = 0; i < 9; i++ )
{
lecturaGas = lecturaGas + analogRead(27);
tempRef=millis();
}
lecturaGas = lecturaGas/10;
}
Serial.println(lecturaGas);
}