Device (20) for controlling the movement of a conveyor device of an agricultural machine has at least a position sensor (42) for detection of at least a defined position and at least a path sensor (40) for detection of the path moved by the conveyor device. The invention also relates to a corresponding agricultural machine, especially a baling machine with a conveyor belt device for moving bales from a loading point to an output position.