Hi,
Thanks for your inquiry.
BME280 is factory calibrated, trimmed and tested before being shipped to the market. Those trimmed values are saved in the NVM of each BME280. Every time when you get raw data from BME280, you need to apply those trimmed values to the formula to get final meaningful temperature, air pressure and humidity values in the unit of C, hPa and %RH respectively.
Please refer to BME280 API source code online at https://github.com/BoschSensortec/BME280_driver. Firstly you need to configure BME280 oversampling for temperature, pressure and humidity sensor. Then you can set BME280 to normal mode and call function bme280_get_sensor_data directly to get final meaningful temperature, air pressure and humidity values in the unit of C, hPa and %RH respectively.
Thanks.
... View more