I am having issues getting the TVOC readings from the Airgradient DIY Pro.
I used the code here:
Except I fixed the conditional checks for each method to fix the order of operations.
e.g.
if (currentMillis - previousTVOC >= tvocInterval) {
to:
if ((currentMillis - previousTVOC) >= tvocInterval) {
Now all my other readings are working as expected except TVOC is showing 0.
Here are the steps I’ve done to get attempt to get the TVOC sensor working.
- I bought the “SGP41 TVOC Module for PRO Kits”
- Didn’t fix the issue.
- I removed the resistors from the “SHT3x module”.
- Didn’t fix the issue.
- I used the default Arduino code directly from your site with the exact libraries and versions.
- Didn’t fix the issue and broke some of the other sensors.
- Corrected some order of operation issues with the default Arduino code.
- Didn’t fix the TVOC issue but fixed all the other sensors.
- Updated the Arduino libraries to their current versions.
- Didn’t fix the issue.
- Switched the TVOC sensor from the I2C 5v to the I2C 3v.
- Didn’t fix the issue.
At this point I don’t know whats left to try.