Is there a Sensor off the outside or ingine compartment gets to hot on 2001 Chevrolet Silverado 3500

My ac works great always until the temp gets to 100 or more .I thought might be iceing up but there is still airflow through vents. After stopping for a time ac will work again for a while.I can not make this happen until I am fifty miles out in the desert.