• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Unit 8 – ESP32 Web Server – Display Sensor Readings

Q&A Forum › Category: ESP32 › Unit 8 – ESP32 Web Server – Display Sensor Readings
0 Vote Up Vote Down
Florentino Fernández Cueto asked 4 years ago

Good morning Rui.
I have a small malfunction in “Unit 8 – ESP32 Web Server – Display Sensor Readings”
1) The BME280 is correctly connected
2) Both port and board are selected
3) When executing the sketch it appears:
Could not find a valid BME280 sensor, check wiring, address, sensor ID!
SensorID was: 0xFF
ID of 0xFF probably means a bad address, a BMP 180 or BMP 085
ID of 0x56-0x58 represents BMP 280,
ID of 0x60 represents BME 280.
ID of 0x61 represents BME 680.
4) BME280 wiring is ok
5) Using the sketch “SCAN I2C” I have found out the address of the BME280 = “I2C device found at address 0x76”. This also means that the ESP32 is detecting it.
I imagine that I will have to indicate the direction of my BME280 so that the sketch of this unit can work, but I do not know where it is done.
Thank you very much for your help.
A cordial greeting.

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Did that sensor worked before with other BME280 examples? Or is this the first time you’re trying the sensor?
Are you sure you don’t have a BMP180 or other sensor? Those sensors are very similar.
How does your sensor look like?
Regards,
Sara

0 Vote Up Vote Down
Florentino Fernández Cueto answered 4 years ago

Hi Sara.
Thanks for answering.
It is the first time that I use that sensor, I am following the examples in the manual about ESP32.
I have found out that it is the BMP280, rather than the BME280, which is possibly why it doesn’t work.
Thank you

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

In that case, you need to use a proper library for that sensor. 
I recommend using this library:

  • https://github.com/adafruit/Adafruit_BMP280_Library

Try the example sketch and see if it works:

  • https://github.com/adafruit/Adafruit_BMP280_Library/blob/master/examples/bmp280test/bmp280test.ino

Then, you need to adjust the projects that use the BME280 to use the BMP280 instead.
Can you figure it out, or do you need help?
Regards,
Sara

0 Vote Up Vote Down
Florentino Fernández Cueto answered 4 years ago

Thank you very much Sara for your great help.
Indeed that was the problem, buy the BMP280 instead of the BME280. Now it works.
A cordial greeting.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Great!
I’ll close this issue. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.