I would look at 2 things here: 1- In your datalog, do you see discontinuities in the temperature signal ? That could indicate an error in the compensation formula 2- Temperature is a very localized measurement. Is it possible that the temperature reached 40C due to heating from the sun ? How did you validate the reference temperature, with a separate thermometer next to BME280, or with the weather forecast?
... View more