A detecting arrangement for dairy cattle comprises a sensor (11) is attachable to the milking animal and comprising a hollow cone (25) oriented so that the tip (25a) of the hollow cone is pointing downwards when the sensor is attached to the milking animal when the milking animal is standing; a part (15) arranged within the hollow cone and movable between a first position (17) and a second position (19), the first position being reached when the milking animal is standing and the second position being reached when the milking animal is lying; an electric circuit (21) influenceable by the movable part; means (23) for measuring the influence of the electric circuit by the movable part; and means for detecting lying and standing times for the milking animal.