albrdev / Sunrise

A library for the Senseair Sunrise CO2 sensor.
Apache License 2.0
4 stars 1 forks source link

co2 signed or unsigned? #3

Open Genoil opened 3 years ago

Genoil commented 3 years ago

Using a sunrise right out of the box, the library reports co2 values in the upper 65K ranges with error status "out of range", when breathed upon, it goes in the low hundreds with error status 0. I changed the library to use a signed int16 for co2 measurements (as per datasheet). Now it reports negative co2 in idle state. I guess i have to calibrate it first.