Chat freely about anything...

User avatar
By Glyphi
#42853 Thank you! I had exactly the same problem and your code has fixed it. Now I'm very tempted to dig and find out why Adafruit's code didn't - it would be nice to give something back for a change, cos I bet the same fix would work for BMP180 and 280.

So glad to see even one of these sensors working on the ESP.
User avatar
By reaper7
#48695
dimesp wrote:@reaper7 your code works but the altitude is always 149.99m

I 've found this https://github.com/finitespace/BME280 code that works on my nodemcu board


it's true, because in example for calculate altitude as parameter is given RELATIVEPRESSURE (calculated from defined my home alt ~150), so...simply replace parameter from relativepressure to realpressure
User avatar
By William235
#56121 I have had exactly the same output with the bme280 and the nodemcu-12e. I have concluded that it is not worth the trouble until someone comes along with a library that actually works. I have had no difficulties with other sensors, including the bmp180.