Closed AmedeeBulle closed 3 years ago
These calculations are given directly from the manufacture. I am hesitant to change them. They do some unconventional things. There is a possibility the behavior you are describing is expected.
This is exactly my point -- the manufacturer reference code linked in #102 is handling these values as 12 bits signed integers; which mean this library differs from the manufacturer reference implementation...
They were taken from the data sheet (I think, 5 years ago is a long time), but I can't seem to find the humidity equation now in the ds. I will take your word for it. Tbh, I don't have time to look into it properly right now.
Thanks for sticking with this. You have a pull request, right. Let me take a look.
Oh gosh, it is too early and I haven't had enough coffee. THIS IS THE PULL REQUEST #facepalm
Changes look fine to me. You have tested them, correct?
I am running 10+ sensors with this change for more than 2 years and the measurements look good to me...
Related issue # and issue behavior
12 bits signed integer are not handles properly, see #102
Description of changes/fixes
Propagate sign to 16 bit signed integer
@mention a person to review
Steps to test
Compare the following snippets of code:
Any outstanding TODOs or known issues