Equipment Needed
The SPS30 module can be connected in either UART or I2C communication mode.
These modes can be selected using the SEL pin, SEL > GND = I2C while SEL > Floating (Not connected) = UART
Pinout
Code & Test
Before you can program the Arduino, you will need to get the "sensirion-sps" Library, to do so first open the Library Manager as shown below,
In the Library Manager search for "sensirion-sps" and install the latest version.
Download the attached SPS30_Example.ino for the code used in the project.
[download link]
*Note that the BAUD rate is set to "115200" not the standard "9600" see the attached BAUD select image for how to change this in the Arduino IDE.
Once successfully programmed the Arduino will be writing to the serial communication port every 15 seconds with the sensor reading, in the format shown above, this is all the 10 available outputs.
Sources