I edited the compensated-temperature.py example to calculate the correction factor. User inputs the actual temperature, take 20 readings each of BME and CPU temps and calculate the factor. I have noted before that the first reading off the BME is skewed, then stabilizes. Here, though, each and every reading is skewed AND EXACTLY THE SAME TO 17 SIG FIGS! Put in an error trap so that if raw<actual, set the factor=100, i.e., make the correction trivial. Is the temp sensor defective?
(pimoroni) hostname@user:~/Pimoroni/enviroplus-python/examples $ python comp-temp-input.py
Enter actual temp in °C: 24.5
2025-08-27 13:27:44.596 INFO comp-temp-input.py - Use the CPU temperature and user input
to compensate temperature readings from the BME280 sensor.
Press Ctrl+C to exit!
2025-08-27 13:27:44.716 INFO RAW: [21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146, 21.551522436831146]
CPU: [42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932, 42.932]
2025-08-27 13:27:44.716 INFO Actual as entered: 24.50 Calculated Factor: 100.00
2025-08-27 13:27:44.718 INFO Compensated temperature: 21.34 °C
2025-08-27 13:27:45.721 INFO Compensated temperature: 29.82 °C
2025-08-27 13:27:46.724 INFO Compensated temperature: 29.80 °C
2025-08-27 13:27:47.727 INFO Compensated temperature: 29.79 °C
2025-08-27 13:27:48.730 INFO Compensated temperature: 29.79 °C
2025-08-27 13:27:49.733 INFO Compensated temperature: 29.79 °C
2025-08-27 13:27:50.736 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:51.739 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:52.742 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:53.745 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:54.748 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:55.751 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:56.754 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:57.757 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:58.759 INFO Compensated temperature: 29.78 °C
2025-08-27 13:27:59.762 INFO Compensated temperature: 29.78 °C
2025-08-27 13:28:00.765 INFO Compensated temperature: 29.79 °C