Method and device for controlling the biological process in waste-water treatment plants