Preparatory work
Ignition off.
Press the brake pedal a few times until the pedal becomes stiff and rises slightly. This releases the vacuum in the power brake booster and thus prevents the O-ring from being sucked in when the pedal position sensor is removed.