After sensor power up, the temperature and pressure oversampling parameters for BMPx and BMEx are skipped. That is the reason why they output constant data.
For temperature and pressure measurements, users need to follow the example flow chart shown in datasheet and API source code in Github (BMP280, BMP388, BME680 and BME280)