this is perfectly normal. The compressor is supposed to start working when the sensor gives it the signal to compress more gas... on the other hand, if it keeps spinning on and on then that could be a problem as the compressor would be working nonstop.
it's the normal function as home ACs do, their compressor turns on and off..