The World Meteorological Organization (WMO), the division of the UN that gathers all worldwide observations and redistribute it to forecast providers, says that all temperatures should be measured two meters above the ground and there is a very good reason for that: It can vary a lot with the distance to the ground.
How much depends on the conditions. If it is windy, the air mixes and there will be very little change with elevation. But if there is e.g. a high pressure with clear sky and little or no wind, it will change a lot! During the night and very early morning, the ground will be much colder after the night radiation as infrared, and during the day, the ground will get much warmer from intense insolation.
And this is why we often say that the forecast temperature doesn't match what we read. If we want to compare, we have to do as the professionals:
Measure the air temperature in a box that is covered from direct sunlight, yet open to the wind and two meters above the ground, away from reflecting surfaces such as walls, etc.
Then there is the time factors. Weather is registered and given in periods of 3, 6, 12 or 24 hours. You have to compare with the same period of time, making the average for that time lapse. If you read e.g. that the temperature for a given place at a given time of the year is so much, it is for a period of 24 hours. Not only daytime temperature. And this is a discussion I have had with my wife for 35 years so don't worry, not everyone has a scientific mind! ;-)