Re: Dust Sensor PPD42 problems
Posted: Tue Apr 06, 2021 6:31 am
Don't use such long delays with ESP8266.
If you only want to trigger things every 30 seconds then use say a 1 second delay and a counter
If you only want to trigger things every 30 seconds then use say a 1 second delay and a counter
Code: Select all
int delayCounter = 0;
void loop() {
if(delayCounter >= 30) {
run_PPD42();
run_CSS811();
senddata();
delayCounter = 0;
}
delay(1000);
delayCounter++;
}