Detection of a brake actuation by a sensor on the brake