practicalarduino / SHT1x

Arduino library to support SHT1x-series (SHT10, SHT11, SHT15) temperature / humidity sensors from Sensirion
http://www.practicalarduino.com/
153 stars 118 forks source link

Strange behavior: Temperature and Humidity follow the same trend. #15

Open atzounis opened 7 years ago

atzounis commented 7 years ago

Hello, and thank you for your contribution. I have used your library in a project to get values from an SHT75, attached on a NodeMCU, and upload them on Ubidots. It seems that the temperature and humidity follow the same pattern. Different values of course, due to the fact that the Sensirion equations used to calculate temperature and humidity are different, but if you plot the two trendlines they will fit 100%. It is as if the "val" returning from the getData16SHT() is the same even we sendCommandSHT() with attribute _gTempCmd (i.e. 0b00000011) or with attribute _gHumidCmd (i.e. 0b00000101). I will add some printouts to see the bits returned from the functions to verify my suspicion. Here is a screenshot of my trendlines: https://snag.gy/O0dLc5.jpg ...and here is the scatter plot: https://snag.gy/LrlAed.jpg

LittleHelper00 commented 7 years ago

Hello, can you share your main code please?

Il 10/gen/2017 14:09, "atzounis" notifications@github.com ha scritto:

Hello, and thank you for your contribution. I have used your library in a project to get values from an SHT75, attached on a NodeMCU, and upload them on Ubidots. It seems that the temperature and humidity follow the same pattern. Different values of course, due to the fact that the Sensirion equations used to calculate temperature and humidity are different, but if you plot the two trendlines they will fit 100%. It is as if the "val" returning from the getData16SHT() is the same even we sendCommandSHT() with attribute _gTempCmd (i.e. 0b00000011) or with attribute _gHumidCmd (i.e. 0b00000101). I will add some printouts to see the bits returned from the functions to verify my suspicion. Here is a screenshot of my trendlines: https://snag.gy/O0dLc5.jpg ...and here is the scatter plot: https://snag.gy/LrlAed.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/practicalarduino/SHT1x/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AQHhKdjxQjDOs_6cCYoWj26TULKQFA6Vks5rQ4MTgaJpZM4LfZFI .

atzounis commented 7 years ago

It seems that there was a problem in my code. Please allow me to correct the bug and I will get back with an update. If there is something wrong. Please close the issue and excuse me for the false alarm. :D

LittleHelper00 commented 7 years ago

no problem, feel free to contact me Giulio

Il 10/gen/2017 22:40, "atzounis" notifications@github.com ha scritto:

It seems that there was a problem in my code. Please allow me to correct the bug and I will get back with an update. If there is something wrong. Please close the issue and excuse me for the false alarm. :D

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/practicalarduino/SHT1x/issues/15#issuecomment-271706300, or mute the thread https://github.com/notifications/unsubscribe-auth/AQHhKXCFRCgmEoxg3bT05eVmcW2xALBmks5rQ_qwgaJpZM4LfZFI .