Closed artkrz closed 4 years ago
I got it working by reducing
delay(30000);
to
delay(15000);
Hi, I think that the issue may not be connected with NodeMCU board but rather with dust sensor. Reducing working time from 30s to 15s (after wakeup) seems strange to make it working (30s is a minimum recommended amount of working time before measurement).
You can try to print also 'sds.wakeup()' status. You can also try 'wakeupUnsafe' - look at Readme or sources to see the difference.
If this will not work you can recompile sources with '#define __DEBUG_SDS_DUST_SENSOR__' - this will print you raw responses from the sensor for all commands
No idea why but I want to get a reading every minute and it seems like I'm geting one evry 5 minutes and failures in beetwen:
I'm using NodeMCU 1.0 board, It's actually Amica v2 and latest release of your library.
Uploaded example code:
Can You help?