The invention relates to a device for and method of milking dairy animals, inparticular cows. The device andmethod have been improved in order to enhance the efficiency of use. In oneembodiment, for the milking, teat cups (2) areconnected by means of a robot arm to respective teats of the dairy animal.This makes it possible to start the milking of the teats of thedairy animal. A milk flow from the respective teat can be measured. Themilking can be ended by means of a control unit (13) independence on a comparison value which is calculated on the basis of a milkingparameter representative of a milk flow from therespective teat and in dependence on a deactivation threshold. According tothe invention, the milking of the last teat is ended independence on a last-teat period to be calculated.