Patent ID: 8015941

Claim:
A system for automatic adjustment of an enclosure for milking an animal, the system comprising: at least one barrier configured to form the enclosure, the barrier being movable; a first sensor configured to detect a presence of the animal in the enclosure; a controller connected to the first sensor, the controller configured to move the barrier stepwise so as to adjust an interior dimension of the enclosure to the animal when the first sensor detects the presence of the animal in the enclosure; a second sensor connected to the controller, the second sensor configured to detect a position value of the barrier; a memory connected to the controller, the memory configured to store an identity of the animal and a final position value of the barrier after the controller has completed stepwise movement of the barrier, the identity of the animal and the final position value of the barrier forming the enclosure occupied by the animal being associated in the memory, the controller being configured to move the barrier based on the final position value stored in the memory.