A camera cleaning system and method for a milking system which includes a rotating platform, plural milking stalls thereon, a robot for performing an animal related operation with respect to the animals in the milking stalls passing by the robot, and a camera in response to signals from which the robot moves, the camera cleaning system includes usage identifying arrangement to identify a future usage demand of the camera a processing device to analyze the future usage demand of the camera to find at least one time slot when the camera is not to be used and which also occurs during certain conditions and a cleaning arrangement arranged to clean the lens arrangement of the camera during the determined time slot.