jaques / sht21_python

Python library for reading data over i2c (tested on raspberry pi)
MIT License
34 stars 19 forks source link

Waiting needlessly long time before reading sensor value? #4

Closed mmilata closed 9 years ago

mmilata commented 9 years ago

The datasheet says that it should take at most 85ms for the temperature and 29ms for the humidity value to become available (datasheet v4, page 9, table 7). Here, however, the wait is 250ms for both.

My experience with electronics is essentially zero, so perhaps it's standard practice to have this large safety margin? Consider this more of a question than a bug report:) I've been polling my sensor with 86ms/30ms delay every 2 seconds past week and encountered no problem so far, though.

jaques commented 9 years ago

Looking through the data sheet I agree with you. I've updated the code to bring it into line with your version I found whilst grabbing your fork. Thanks for letting me know.

jaques commented 9 years ago

oh... I hope you don't mind me copying the couple of lines over, I couldn't find a licence... please let me know if you have any concerns.

mmilata commented 9 years ago

Haven't decided on the license yet - feel free to copy anything in the meantime.