1. A milking system comprising: a milking robot (1) with at least one robotic arm (110) for applying teat cups (50) to the teats of the animal, an optical detector (40) for detecting the radiation emitted and / or reflected at least part of the animal, wherein said detector comprises a housing (410) with a window (420) which is substantially transparent to said radiation, and an element (430) of detection, which is enclosed inside of said housing and receives radiation through said opening (420), wherein said optical Detect Op configured to move to a position under the animal to detect the position of the teats of said animal, and a controller (20) for controlling the operation of said robot arm (110) and said detector (40), characterized in that said detector (40) includes means (440 ) blowing configured connectable to a source of compressed air and having at least one opening (450) arranged adjacent the window (420) detector to create air curtain which flows substantially parallel to the surface of said window, wherein yk bonded controller (20) is adapted to control the supply of compressed air into said at least one opening (420) for creating said air curtain at the beginning of or immediately before the at least one additional operation, controlled kontrollerom.2. The milking system according to Claim. 1, wherein said at least one additional operation, controlled by said controller (20) includes positioning said detector (40) under zhivotnym.3. The milking system according to Claim. 1, wherein said at least one complementary1. Система доения, включающая:доильный робот (1) с по меньшей мере одной роботизированной рукой (110) для приложения доильных стаканов (50) к соскам животного,оптический детектор (40) для обнаружения излучения, испускаемого и/или отражаемого по меньшей мере частью животного, при этом указанный детектор имеет корпус (410) с окном (420), которое является по существу прозрачным для указанного излучения, и элемент (430) обнаружения, который заклю