The most recent version can be found at https://github.com/Sensirion/arduino-sps
To learn more about the SPS30, please visit https://www.sensirion.com/sps30/. For support questions on the SPS30, please visit https://sensirion.com/contact.
This library is using the code from Sensirion's embedded-sps library, and adding a handful of changes to adapt to Arduino.
Most notably, this is using an alternative I2C Master Library to work around the I2C buffer size limit that exists on certain Arduino platform, including the Arduino Uno series.
At this point, this library is not yet available through the Arduino Library manager. To install, following the following steps:
- Download the latest ZIP file from the Github release page
- Start the Arduino IDE
- Select
Sketch > Include Library > Add .ZIP Library...
- A dialog will open; here, select the file you selected in step 1
- Open the example from
File > Examples > arduino-sps > sps30
. - Open the serial monitor from the Tools menu
- Press the "Upload" button to compile and upload the sketch
If you check the serial monitor window, you should see something like this:
- Open the example from
File > Examples > arduino-sps > sps30
. - Open the serial plotter from the Tools menu (if you have the serial monitor open, you'll need to close it first)
- Uncomment line 8 of the sample program; it should now read
#define PLOTTER_FORMAT
- Press the "Upload" button to compile and upload the sketch
If you check the serial plotter window, you should see something like this: