Miceuz / i2c-moisture-sensor

I2C based soil moisture sensor
Apache License 2.0
240 stars 72 forks source link

Include data format in register address #40

Closed kriskeillor closed 1 year ago

kriskeillor commented 2 years ago

The I2C register map does not define the data format, and the listed examples use different ways of calculating them.

E.g., the example by Daniel Tamm and Jasper Wallace simply prints the raw registers as Temp (C or F?), Moisture (Relative Humidity?), and Light (Lux?). Meanwhile, the example from krikk (second code block following above anchor link) treats light and moisture as raw values, while temp is divided by ten.

All in all, the data format and unit of the sensor readings needs to be provided in the I2C register map (or somewhere else).

dj-bauer commented 1 year ago

He provides the interpretation of the sensor values on his tindie-page https://www.tindie.com/products/miceuz/i2c-soil-moisture-sensor/

Miceuz commented 1 year ago

Thanks for pointing this out @kriskeillor