Moving the temperature sensor out of the sun
For the first three months the sensor sat in a small vented box screwed to the fence. On cloudy days its readings were close to the nearest airport station. On sunny afternoons it was 4–6 °C warmer, and the error disappeared within minutes when a cloud passed over. That is the signature of sunlight heating the sensor, not the air.
A shield from plant saucers
Official stations keep thermometers in a ventilated white enclosure about 1.25–2 m above grass, away from walls. I built a cheap version of the classic stacked-plate shield: eight white plastic plant saucers on threaded rod, each with a hole cut in the middle, spaced with nuts so air can pass between them. The sensor hangs in the middle of the stack.
The shield now stands on a post 1.5 m above the lawn, a few metres from the fence and the house.
Results
Over the next month the sunny-afternoon bias against the airport dropped to under 0.5 °C. The surprise was at night: readings came down by around a degree as well. The fence had been storing heat during the day and releasing it after sunset, so the old position was wrong in both directions.
The saucers cost less than the sensor. If I were starting again I would build the shield first.