Pimoroni Enviro-pHAT reads high

I just hooked up a Pimoroni Enviro-pHAT to my pi zero w and I am getting HIGH temperature readings. The surface temp of the device is 29 c as easured by an infraread thermometer. The device is giving me a reading of 32.8 c.

I am using this as a room thermostat replacement so inaccurate readings are a real problem. Is there some sort of calabration or offset calculation I can use to make this usable?


There is a file in the examples folder named “compensated-temperature.py” That allows for you to put in an offset to compensate for the heat from the Pi. I used a GPIO extension cable to move it 6 inches away and the temp is spot on with my room thermometer.