Rui good afternoon, what a pity to bother so much, but I want to learn a lot, in Colombia I got the sensor BMP280 as I implement it in the project ESP32 web server: readings of the screen sensor ??? thanks for your help.
We don’t have any unit using that specific sensor. But the project should work for you sensor with a few modifications.
First, you need to install this library for the BMP280: https://github.com/adafruit/Adafruit_BMP280_Library
Getting sensor readings with that library is very similar to the BME280. Take a look at the example to see how to take measurements: https://github.com/adafruit/Adafruit_BMP280_Library/blob/master/examples/bmp280test/bmp280test.ino
In the code, you should include this library instead:
Then, create an Adafruit_BMP280 object:
In the web server section, you just need to use the bmp object instead of bme, as follows:
I hope this helps!