That's why when they take air temperature samples they take multiple samples from multiple locations and they explicitly don't put them under trees, behind shade, unusually high up.
If you're standing under a tree resulting in a lower air temperature that won't affect the weather prediction because the temperature isn't taken from your phone.