SparkFun_MAX3010x_Sensor_Library
SparkFun_MAX3010x_Sensor_Library copied to clipboard
Issue in Example 8
I also got better results by using FIFO reading. for (byte i = 75; i < 100; i++) { while (particleSensor.available() == false) //do we have new data? particleSensor.check(); //Check the sensor for new data irBuffer[i] = particleSensor.getFIFOIR(); // greenBuffer[i] = particleSensor.getGreen(); particleSensor.nextSample(); //We're finished with this sample so move to next sample }