Comments: CCS811 Air Quality Breakout Hookup Guide

Pages

Comments 2 comments

  • I tried CCS811 library with Arduino Uno and Mega and it works fine, but I tried it with ESP8266 Thing but it does not work. Any reason why it should not work?

  • Hi - Just a small typo I noticed in the first loop() example code

    void loop()
    {
      if (myCCS811.dataAvailable())
      {
        myCCS811.readAlgorithmResults();
        int tempCO2 = myCCS811.getCO2();
        int tempVOC = myCCS811.getTVOC(); // <---- TYPO corrected here getTVOC() instead of gettVOC()
      }
      else if (myCCS811.checkForStatusError())
      {
        while(1);
      }
    
      delay(1000); //Wait for next reading
    }
    

If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!