In fact, the underlying procedure is mostly the same even when you’re on an ESP32 board. Once you’ve connected the BME280 (or another similar sensor) to the correct GPIO pins on your ESP32 ...
As [Circuit Digest] demonstrates with their variant of the ESP-Drone project by Espressif, you only need a minimum of parts: an ESP32 MCU, an inertial measurement unit (IMU) such as the MPU6050 ...