A method of disinfecting or sterilizing at least a portion of any of a
resting, a milking, or a feeding station (3, 24, 26) provided with an
animal identification device (18) and located in an area (1), in which
milking animals are allowed to move, is provided. Each of the animals
visiting the resting, the milking, or the feeding station is identified
and is admitted to enter the station depending on the identification. The
inventive method comprises the steps of retrieving information regarding
the health of each of the animals entering the station; and automatically
disinfecting or sterilizing the portion of the station only if the
information retrieved reveals that an animal entering the station has an
infection that is capable of being transmitted to other animals. The
disinfection or the sterilization is performed after that said infectious
milking animal has left the station.