Milking system with a milking device for milking milk from a dairy animal, a milk line in fluid connection with the milking device, and a sampling and analysis device being arranged to take a sample of the milk from the milk line and to analyse milk from the sample, the sampling and analysis device comprising: - a control unit for controlling the sampling and analysis device, - a tape wound on a tape reel carrying the tape, said tape comprising a base material with provided thereon a series of reagent pads , that are arranged to provide a detectable response in the presence of at least one substance in the sample, - a tape mover , arranged to move and unwind the tape under the control of the control device, - a dosing device (25; 25') arranged to provide, under the control of the control unit, a part of the sample onto one of the reagent pads, - an optical sensor device (28; 28') arranged to detect optical radiation from said reagent pad supplied with said part of the sample, and to analyse the detected optical radiation to provide an indication of a presence or concentration of said at least one substance, characterized in that the dosing device comprises a displaceable nozzle (25; 25') with a supply line (15") for supplying a portion of the milk sample to the nozzle, the nozzle being arranged for supplying the part of the sample upwardly to the reagent pad, wherein the dosing device further comprises a nozzle mover that is arranged to move the displaceable nozzle towards and away from the tape under the control of the control unit, wherein the dosing device comprises an overflow device comprising a wall, in particular a cup, the wall at least partly surrounding the nozzle, an overflow space being provided between the wall and the nozzle, further comprising a discharge connected or connectable to the overflow space. - a control unit for controlling the sampling and analysis device, - a tape wound on a tape reel carrying the tape, said tape comprising a base material with provided thereon a series of reagent pads , that are arranged to provide a detectable response in the presence of at least one substance in the sample, - a tape mover , arranged to move and unwind the tape under the control of the control device, - a dosing device (25; 25') arranged to provide, under the control of the control unit, a part of the sample onto one of the reagent pads, - an optical sensor device (28; 28') arranged to detect optical radiation from said reagent pad supplied with said part of the sample, and to analyse the detected optical radiation to provide an indication of a presence or concentration of said at least one substance, the dosing device comprises a displaceable nozzle (25; 25') with a supply line (15") for supplying a portion of the milk sample to the nozzle, the nozzle being arranged for supplying the part of the sample upwardly to the reagent pad, wherein the dosing device further comprises a nozzle mover that is arranged to move the displaceable nozzle towards and away from the tape under the control of the control unit, wherein the dosing device comprises an overflow device comprising a wall, in particular a cup, the wall at least partly surrounding the nozzle, an overflow space being provided between the wall and the nozzle, further comprising a discharge connected or connectable to the overflow space. <EOS>