The method involves automatically triggering an action or a sequence of actions to be carried out in an agricultural machine (1) via a control of a controller (10) of the machine by detecting a state change of one of control units (5) of a tractor (2) using a monitoring system (11) that provides information to the controller. The control units are chosen from actuators such as hitch or power take-off shaft, and power distributors such as hydraulic distributor or electrical power distributor.