An arrangement for detection of the amount of material in a supply container of a machine for application of material to a field comprises a data entry device for receiving fill level data concerning an amount of material present in the supply container at a specific time point and an outflow sensor for detection of the amount of material that has flowed out of the supply container. A computer device connected to the data entry device and outflow sensor, the computing device is programmed to calculate the current amount of material in the supply container using the obtained fill level data and the signals of the outflow sensor obtained after the specific time point, and to issue a warning signal if the amount of material in the supply container goes below a predetermined level.