-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Humidity value always 0.0 #2
Comments
Interesting.... line 92 clamps the value between 0% and 100% (obviously, any value outside this range doesn't/shouldn't make sense)
|
The value of temperature is ~3 °C higher with the Adafruit library and pressure is the same.
EDIT1: EDIT2: |
I've published 0.1.3 on pypi with the fix in it, and have improved the debug logging of uncompensated readings:
|
Sorry for necromancy, I got a similar issue reported in cmur2/python-bme280#35 and thus came to this thread. @rm-hull one question: Edit: It looks like a missed a later modification to the code, my apologies. |
@cmur2 if you look at the code https://github.com/rm-hull/bme280/blob/master/bme280/__init__.py#L179, is that not what it does? I think that #11 made this observation, and it was fixed in commit ad21381. |
Hi,
when running the sample.py, the humidity value is always 0.0.
Temperature and pressure seem fine. The sensor is also working with the Adafruit library on an Arduino.
EDIT1:
I'm using Python 2.7
Looking into the init.py, the error seems to occur in the calculating of the variable res, which is in my case calculated to ~ -3798. Therefore line 92 is evaluated to 0.0
The text was updated successfully, but these errors were encountered: