Sensirion / arduino-i2c-scd4x

Arduino library for Sensirion SCD4x sensors
BSD 3-Clause "New" or "Revised" License
48 stars 19 forks source link

temperature and humidity conversion not exact #17

Closed fishingpole closed 2 years ago

fishingpole commented 2 years ago

File SensirionI2CScd4x.cpp, function readMeasurement() uses 65536.0 in the conversion formulas from temperature ticks to temperature degrees C and for humidity ticks to humidity RH.

The SCD4x Datasheet Table 11 in section 3.5.2 says to use "2^16 - 1" which would be 65535.0.

psachs commented 2 years ago

thank you for reporting. The issue is fixed in master