A hoof treatment arrangement arranged to spray a liquid onto hooves of animals while they are stationary in a stall (3, 6, 27) of an animal arrangement, the hoof treatment arrangement comprising an identification system configured to identify animals, an automatic detector arrangement configured to determine the hoof status for animals, an automatic spray device, and a control arrangement, wherein the control arrangement is: - operatively connected to an information database of the animal arrangement which comprises animal specific information for a plurality of animals housed in the animal arrangement; - operatively connected to the identification system, to obtain information regarding the identity of each of the plurality of animals; - operatively connected to the automatic detector arrangement, to obtain information regarding the hoof status for each of the identified animals; - operatively connected to the automatic spray device, to control the automatic spray device; - arranged to update the information database with respect to the hoof status for each of the identified animals; and - configured (i) to select a subset of the plurality of animals housed in the animal arrangement based on the animal specific information and (ii) to control the automatic spray device to spray a liquid onto one or more of the hooves of only the animals of the selected subset of the plurality of animals while they are stationary in the stall (3, 6, 27) of the animal arrangement; and wherein - the hoof status includes the degree of cleanliness of the hooves; and - the liquid is a cleaning or sanitizing liquid; the arrangement characterised in that: - the animal specific information further includes information regarding the risk for each of the plurality of animals to become ill, which is determined based on e.g. age, race, behavior, lactation status, illness history, or illness history of related animals; - the control arrangement is configured to select the subset of the plurality of animals housed in the animal arrangement based on the degree of cleanliness of the hooves combined with the risk for each of the plurality of animals to become ill, particularly by selecting as the subset those animals having the highest risks to become ill where the degree of cleanliness is below a threshold. - operatively connected to an information database of the animal arrangement which comprises animal specific information for a plurality of animals housed in the animal arrangement; - operatively connected to the identification system, to obtain information regarding the identity of each of the plurality of animals; - operatively connected to the automatic detector arrangement, to obtain information regarding the hoof status for each of the identified animals; - operatively connected to the automatic spray device, to control the automatic spray device; - arranged to update the information database with respect to the hoof status for each of the identified animals; and - configured (i) to select a subset of the plurality of animals housed in the animal arrangement based on the animal specific information and (ii) to control the automatic spray device to spray a liquid onto one or more of the hooves of only the animals of the selected subset of the plurality of animals while they are stationary in the stall (3, 6, 27) of the animal arrangement; and wherein - the hoof status includes the degree of cleanliness of the hooves; and - the liquid is a cleaning or sanitizing liquid; - the animal specific information further includes information regarding the risk for each of the plurality of animals to become ill, which is determined based on e.g. age, race, behavior, lactation status, illness history, or illness history of related animals; - the control arrangement is configured to select the subset of the plurality of animals housed in the animal arrangement based on the degree of cleanliness of the hooves combined with the risk for each of the plurality of animals to become ill, particularly by selecting as the subset those animals having the highest risks to become ill where the degree of cleanliness is below a threshold.