Hello!
I follow the project ESP32 MQTT – Publish and subscribe with Arduino IDE. I have copied and pasted everything you have written. And Node-red shows it. But the readings from BME280 in the serial monitor show 181.6 and sometimes nan Celicus and humidity 0.00 and sometimes nan. The website shows a gray humidity that changes between 0 to nan and a graph that shows 181 C. I have tested with two new BME280 and have scanned them and it says 0x76. And my BME280 looks exactly like the one you have a picture of and also the letter combination CJMCU. I have checked the connections and they are correct. The LED diode works to turn on and off. Any suggestions on what to troubleshoot?
Regards Anders
Hi.
Do the other sensors work?
It seems that the sensor is broken, or it is not connected properly.
Regards,
Sara
No, both the sensors give the same result. And I have measured the voltage on their input and it is 3.3V. Both sensors are new and when you run the ic2 scanner you get 0x76 from them.
Then it`s just 2 more cables and the SCK goes to GPIO22 and the other SDI goes to GPIO21.
I found another site were they used Arduino UNO and there they have also put the SDO to gnd. So I tested this and then everting works with both of my BME280 sensors. I did a test with the Esp32 and also use the gnd to SDO then everting works perfect. So case is solved.
Regards
Anders
After reading a littel more the I found out this. If you do a IC2 scan and it says 0x76 then you have to put the SDO to low (gnd) And then it will work for you.
//Anders