S40 2.4i L5-2.4L VIN 38 B5244S4 (2008)
Pull out the pressure sensor (1) to eliminate any vacuum in the power brake booster. Disconnect the connector (2).
Open the snap ring and pull out the pedal sensor.
Hint: The opening on the snap ring points straight down. The snap ring does not need to be completely removed, just opened.