I thought I 'd used the _float version previously, so this time, I grabbed the _float version again, and of course, I then had the lines of code you've highlighted above as correction factors. I guess i've mis-remembered and had actually taken the _int version.
Anyhow, I've removed those correction factor lines and the temperature/humidity readings now look much better. However, I found that to get the pressure values to read correctly, I still had to put in a correction factor to the received value from your driver file. I now have the following lines:
Code: Select all
at0 = t0
ap0 = p0/100.0
ah0 = h0
at1 = t1
ap1 = p1/100.0
ah1 = h1
I don't know right now if there is a linear offset or a non linear offset from your driver file, meaning that dividing the pressure by 100 may still not be correct.
I just want to add that i'm very pleased you were willing to look at all this for me, as there is no way on earth I would have been able to come up with all the corrections you've made so far! I'm just not that good, and I'll be honest, I probably never will be. I'm much more of an end-user rather than someone who's going to be able to have the capability to write and edit driver files! So again, your continued support is most appreciated.