Firstly, I'm not sure if this is the right SE to ask this question. Please feel free to direct me somewhere else if needed.
I am observing large spikes in CO2 and TVOC measurements using the CJMCU-811 sensor. When plotted it looks like this:
Nothing particular is happening around the sensor at those moments of spikes, I'm not breathing on the sensor etc.
I use Arduino Uno with the following code:
/******************************************************************************
Read CO2 and TVOCs from CJMCU-811 sensor
Arduino connection:
3.3V to 3.3V
ACC to 3.3V
GND to GND
WAK to GND
SDA to A4
SCL to A5
******************************************************************************/
#include <Wire.h>
#include "SparkFunCCS811.h"
#define CCS811_ADDR 0x5B
CCS811 mySensor(CCS811_ADDR);
void setup()
{
Serial.begin(9600);
Serial.println("CCS811 Basic Example");
Wire.begin();
CCS811Core::status returnCode = mySensor.begin();
if (returnCode != CCS811Core::SENSOR_SUCCESS)
{
Serial.println(".begin() returned with an error.");
while (1);
}
}
void loop()
{
if (mySensor.dataAvailable())
{
mySensor.readAlgorithmResults();
delay(1);
Serial.print("CO2 ");
Serial.print(mySensor.getCO2());
Serial.print(", tVOC ");
Serial.print(mySensor.getTVOC());
Serial.println();
}
delay(2000);
}
Of course I can filter and not worry about them, but I'm nevertheless curious what is causing it. Any suggestions what could be the reason for that?