Use a Stevenson screen or an equivalent protective enclosure to shield the sensor from direct sunlight and precipitation while allowing air to circulate freely around it.