The present invention refers to an arrangement for automatically disinfecting or sterilizing at least a portion of any of a resting, a milking, or a feeding station (9, 33a, 33b). The arrangement comprises a water tank (71) for storing an amount of water; means (72a-d) for regulating a flow of water from said water tank; a chamber (73) for receiving said flow of water, said chamber being capable of housing only a fraction of said amount of water; heating means (74a-c) for generating steam from water housed in said chamber or for heating water housed in said chamber; and an output line (75) for directing said generated steam or heated water towards said at least portion of any of a resting, a milking, or a feeding station to thereby disinfect or sterilize said at least portion of any of a resting, a milking, or a feeding station.