It measures the amount of sunlight coming through the windshield. More intense sunlight = more radiant heat. There are also temperature sensors, but this one possibly can be thought of an an early warning so the auto A/C can boost up before the temperature begins to rise dramatically as it would then have to play catch up.
Check these two threads:
Thread One Thread Two