Temperatures recorded should always be air temperature. The temperature sensor is always shaded from radiaton from the sun and other sources. In fact, shielding from radiation is exactly why the termometers are placed inside a beehive-like box that allows air flow, but shield from the sun.

If you want to know how much heat that is radiated from the sun, asphalt, rocks and so on then you need a different kind of instrument.