How do you remove the brake sensor to install pad on 2007 Mini Cooper

I need to know how to remove the brake sensor so that I can replace pads

Asked by for the 2007 Mini Cooper
It should just pop right out of an indention in the pad itself. Usually if you replace the brake pad, you replace the sensor as well.