This could be from low refrigerant in the A/C system. That is what I would check first, if the refrigerant level is OK then check the cooling fan operation and the high and low side pressures.
RepairPal Certified shops can diagnose and repair your 2002 Dodge Ram 2500. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.