The agricultural machine (1) has a ploughing tool (2) that is lifted or lowered by a lifting cylinder (9). A sensor (20) is provided for detecting the working depth of the ploughing tool tool. A control unit (19) is provided for controlling working depth of ploughing tool during operation using lifting cylinder.