As mentioned above, brake sensors are designed to break. You should replace them each time you replace your brake pads. It is also a good idea to inspect the sensors regularly between pad changes and replace them when necessary.