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,31,32,33)are connected by means of a robot arm to respective teats of the dairy animal.This makes it possible to start the milking of theteats of the dairy animal. A milk flow from the respective teat can bemeasured. The milking can be ended by means of a controlunit (13) in dependence on a comparison value which is calculated on the basesof a milking parameter (g1-g4) representative of amilk flow from the respective teat and in dependence on a deactivationthreshold. According to the invention, a second manner ofcalculating is used for calculating the comparison value of the last teat. Themilking of the last teat can also depend on the momentof ending the milking of the one-but-last teat.