Even though the part is cheap. this system is so easy to verify sensors on that one might as well test.
Look to this article it was writen for your car:
The most common reason for the compressor to shut off is the evap sensor actual value #5. The article also tells how to erase codes if I recall.
Bosch Master, ASE Master, L1
33 years MB technician