@@ -85,6 +85,7 @@ DHT22 is supported but is not recommended. Please see the documentation.
8585- Unified calibration trigger for all CO2 sensors
8686- Unified CO2 Altitude compensation
8787- Unified temperature offset for CO2 and environment sensors
88+ - Add support for Kelvin and Fahrenheit on environment and CO2 sensors
8889- Public access to main objects of each library (full methods access)
8990- Get unit symbol and name and each sub-sensor
9091- Get the main group type: NONE, PM, CO2 and ENV.
@@ -129,6 +130,7 @@ void setup() {
129130 sensors. setSeaLevelPressure(1036.25 ); // [optional] Set sea level pressure in hpa
130131 sensors. setDebugMode(false ); // [optional] debug mode to get detailed msgs
131132 sensors. detectI2COnly(true ); // [optional] force to only i2c sensors
133+ sensors. setTemperatureUnit(TEMPUNIT :: KELVIN ); // comment it for Celsius or set Fahrenheit
132134 sensors. init(); // Auto detection to UART and i2c sensors
133135
134136 // Alternatives only for UART sensors (TX/RX):
@@ -143,8 +145,6 @@ void setup() {
143145 // sensors.init(SENSORS::SAIRS8); // Force UART detection to SenseAirS8 CO2 sensor
144146 // sensors.init(SENSORS::Auto,PMS_RX,PMS_TX); // Auto detection on custom RX,TX
145147
146-
147-
148148 // Also you can access to sub-library objects, and perform for example calls like next:
149149
150150 // sensors.sps30.sleep()
0 commit comments