Device (200, 500, 600) for measuring an amount of milk produced by an animal in a milking process, comprising: a container (201); a feeding line (202) that is configured for the supply of milk to the container (201) and can be connected to an ordering set of an ordering machine; a bypass unit (211), which is configured to bypass the milk from the container (201) and can be connected to an ordering line of the ordering machine that can be subjected to an ordering vacuum, in which the unit Bypass (211) comprises means (213) for modifying a size of a discharge opening through which milk flows during the bypass of the container (201), in which at least two different sizes of the discharge opening that allows the milk to pass through the discharge opening; a filling level measurement device (219) that is configured to measure a milk filling level in the container (201); and a control unit (236) that is configured to control the means (213) for modifying the size of the discharge opening depending on the level of milk filling in the container (201), determined by the measuring device of the filling level (219), in order to adjust the size of the discharge opening so that the filling level is in a predetermined range; characterized by a titration unit (237) that is configured to calculate a milk flow to the container (201) from the adjusted size of the discharge opening and the filling level measured by the filling level measuring device (219 ).Dispositivo (200, 500, 600) para la medicion de una cantidad de leche producida por un animal en un proceso de ordeno, que comprende: un recipiente (201); una linea de alimentacion (202) que esta configurada para el suministro de leche al recipiente (201) y se puede conectar con un juego de ordeno de una maquina ordenadora; una unidad de derivacion (211), que esta configurada para la derivacion de la leche del recipiente (201) y se puede conectar con una linea de ordeno de la maquina ordenadora que se puede someter a un vacio de ord