First check to make sure the wire for that sensor is OK. Dirty/loose plugs anywhere? Cut the wire while wrenching on a caliper or shock??
The sensor's magnetic. It's possible that a pile of metal shavings are stuck to it? Take off the caliper & rotor, you'll see the sensor poking thru & sitting close to a toothed ring on the outer CV joint.