Using the SEN6x adapter breakout with Arduino involves wiring up the adapter with a SEN6x sensor to your Arduino-compatible microcontroller, installing the Sensirion I2C SEN66 library, and running the provided example code.
Please note: this board does NOT come with a JST GH-compatible cable NOR a SEN6x sensor! You can pick up the cable here, and a SEN6x from DigiKey.

Wiring
Wire as shown for a 5V board like an Uno. If you are using a 3V board, like an Adafruit Feather, wire the board's 3V pin to the breakout VIN.
Here is an Adafruit Metro wired up to the breakout using the STEMMA QT connector:
-
Board 5V to breakout VIN (red wire)
-
Board GND to breakout GND (black wire)
-
Board SCL to breakout SCL (yellow wire)
- Board SDA to breakout SDA (blue wire)
- SEN66 sensor to breakout JST GH port
Here is an Adafruit Metro wired up using a solderless breadboard:
-
Board 5V to breakout VIN (red wire)
-
Board GND to breakout GND (black wire)
-
Board SCL to breakout SCL (yellow wire)
- Board SDA to breakout SDA (blue wire)
- SEN66 sensor to breakout JST GH port
Library Installation
You can install the Sensirion I2C SEN66 library for Arduino using the Library Manager in the Arduino IDE.
Click the Manage Libraries ... menu item, search for Sensirion SEN66, and select the Sensirion I2C SEN66 library:
If asked about dependencies, click "Install all".
If the "Dependencies" window does not come up, then you already have the dependencies installed.
If the dependencies are already installed, you must make sure you update them through the Arduino Library Manager before loading the example!
/* * THIS FILE IS AUTOMATICALLY GENERATED * * Generator: sensirion-driver-generator 1.1.2 * Product: sen66 * Model-Version: 1.6.0 */ /* * Copyright (c) 2025, Sensirion AG * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * * Neither the name of Sensirion AG nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <Arduino.h> #include <SensirionI2cSen66.h> #include <Wire.h> // macro definitions // make sure that we use the proper definition of NO_ERROR #ifdef NO_ERROR #undef NO_ERROR #endif #define NO_ERROR 0 SensirionI2cSen66 sensor; static char errorMessage[64]; static int16_t error; void setup() { Serial.begin(115200); while (!Serial) { delay(100); } Wire.begin(); sensor.begin(Wire, SEN66_I2C_ADDR_6B); error = sensor.deviceReset(); if (error != NO_ERROR) { Serial.print("Error trying to execute deviceReset(): "); errorToString(error, errorMessage, sizeof errorMessage); Serial.println(errorMessage); return; } delay(1200); int8_t serialNumber[32] = {0}; error = sensor.getSerialNumber(serialNumber, 32); if (error != NO_ERROR) { Serial.print("Error trying to execute getSerialNumber(): "); errorToString(error, errorMessage, sizeof errorMessage); Serial.println(errorMessage); return; } Serial.print("serialNumber: "); Serial.print((const char*)serialNumber); Serial.println(); error = sensor.startContinuousMeasurement(); if (error != NO_ERROR) { Serial.print("Error trying to execute startContinuousMeasurement(): "); errorToString(error, errorMessage, sizeof errorMessage); Serial.println(errorMessage); return; } } void loop() { float massConcentrationPm1p0 = 0.0; float massConcentrationPm2p5 = 0.0; float massConcentrationPm4p0 = 0.0; float massConcentrationPm10p0 = 0.0; float humidity = 0.0; float temperature = 0.0; float vocIndex = 0.0; float noxIndex = 0.0; uint16_t co2 = 0; delay(1000); error = sensor.readMeasuredValues( massConcentrationPm1p0, massConcentrationPm2p5, massConcentrationPm4p0, massConcentrationPm10p0, humidity, temperature, vocIndex, noxIndex, co2); if (error != NO_ERROR) { Serial.print("Error trying to execute readMeasuredValues(): "); errorToString(error, errorMessage, sizeof errorMessage); Serial.println(errorMessage); return; } Serial.print("massConcentrationPm1p0: "); Serial.print(massConcentrationPm1p0); Serial.print("\t"); Serial.print("massConcentrationPm2p5: "); Serial.print(massConcentrationPm2p5); Serial.print("\t"); Serial.print("massConcentrationPm4p0: "); Serial.print(massConcentrationPm4p0); Serial.print("\t"); Serial.print("massConcentrationPm10p0: "); Serial.print(massConcentrationPm10p0); Serial.print("\t"); Serial.print("humidity: "); Serial.print(humidity); Serial.print("\t"); Serial.print("temperature: "); Serial.print(temperature); Serial.print("\t"); Serial.print("vocIndex: "); Serial.print(vocIndex); Serial.print("\t"); Serial.print("noxIndex: "); Serial.print(noxIndex); Serial.print("\t"); Serial.print("co2: "); Serial.print(co2); Serial.println(); }
The Sensirion I2C SEN66 library has an example to read all of the available data from the SEN66 sensor over I2C. Upload the sketch to your board and open up the Serial Monitor (Tools -> Serial Monitor) at 115200 baud. You'll see the PM1.0, PM2.5, PM4.0, PM10.0, humidity, temperature, VOC index, NOx index and CO2 readings print to the Serial Monitor every second.
Page last edited May 23, 2025
Text editor powered by tinymce.