pimoroni / enviroplus-python

Python library for the Enviro+ environmental monitoring board
https://shop.pimoroni.com/products/enviro-plus
MIT License
399 stars 183 forks source link

BME280 humidity readings issue #29

Open Andermutu opened 5 years ago

Andermutu commented 5 years ago

Hi,

I am having issues with the humidity reading of the BME280 sensor. Here we have around 80% of relative humidity, however, the maximum value I get with the all-in-one-no-pm.py is 36-40% HR.

I have looked at the BME280 datasheets and it can read from 0-100% HR, so in theory, an 80% HR is achievable.

Any idea or suggestion is welcomed.

takkaria commented 5 years ago

If you have mounted the hat directly onto the Pi, it's likely that the heat of the Pi is affecting your readings. Try getting an extension cable and you should see better readings.

Andermutu commented 5 years ago

Thank you @takkaria, I will try with an extension cable.

ADEidos commented 4 years ago

Hi @Andermutu, did you finally tried with the extension cable?

doctorkb commented 3 years ago

As mentioned, the heat is likely causing part of the issue. I've opened another issue for updating the code to correctly calculate relative humidity after adjusting for CPU temps (e.g. as found in all_in_one and combined examples) -- you need to convert the RH to dewpoint using the raw temperature, then convert it back to RH using the compensated temperature. I have some code that does this, but it's a little unpolished still. 🙂

sphaero commented 1 year ago

Which issue is that? I'm also reading 18-36% humidity indoor with an extension cable.

sphaero commented 1 year ago

I guess it was #104 and the code that's referred to is:

https://github.com/roscoe81/enviro-monitor/blob/ad8d3cec149dbc115825885bfebbf7fc1eb316cc/Northcliff_AQI_Monitor_Gen.py#L416