We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10c0a43 + babd465 commit f57ddf6Copy full SHA for f57ddf6
adafruit_sht31d.py
@@ -217,7 +217,7 @@ def _data(self):
217
humidity = [None] * (length//2)
218
for i in range(length//2):
219
temperature[i] = -45 + (175 * (word[i*2] / 65535))
220
- humidity[i] = 100 * (word[(i*2)+1] / 65523)
+ humidity[i] = 100 * (word[(i*2)+1] / 65535)
221
if (len(temperature) == 1) and (len(humidity) == 1):
222
return temperature[0], humidity[0]
223
return temperature, humidity
0 commit comments