BME280 Sensor - Its possible to convert humidity to float? #13757
pierregraciano
started this conversation in
General
Replies: 1 comment 6 replies
-
You cannot use the class members temperature and humidity directly. You have to use e.g. the values property:
or
Otherwise the measurement will not take place. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Im trying to calibrate my BME280 sensor, so I found a linear math expression to fix the measure of sensor. The 1st expression is: 1.12 * X - 9.75, where X is the humidity. Im using BME280.py lib and my code is below. The problem is: I need to convert the value measure to new value, but I got some errors like "ValueError: invalid syntax for number". I tried to convert the humidity to float but didnt fixed the problem.
Beta Was this translation helpful? Give feedback.
All reactions