I assume the brake pads aren't actually worn down?
I can't remember which pad has the sensor (inboard or outboard) but the inboard pads tend to wear down quicker with floating calipers, which you can't see through the wheel as easily as the outboard one.
Reminds me of a time when a mate got all panicky about his car not firing up and spent ages on the diagnostics. He'd run out of fuel
Typical car enthusiasts overlooking the obvious and going straight to worst case scenarios
Not saying you're as dumb as him, but anyway, either code out the sensor, or bridge two wear sensor wires together