The present document discloses an agricultural implement comprising a first frame section (10), a portion (11a, 11b, 12a, 12b), which is moveable relative to the first frame section, and an actuator (15a, 15b, 16a, 16b, 215) for controlling a relative movement between the first frame section (10) and the portion (11a, 11b, 12a, 12b). The agricultural implement has a first sensor (20, 220), arranged to provide a first value corresponding to the angle of the first frame section relative to a predetermined reference plane or a predetermined reference direction, and a second sensor (21, 22), arranged to provide a second value corresponding to the angle of the portion relative to the predetermined reference plane or the predetermined reference direction. Said reference plane or reference direction is defined in relation to a direction of gravity.