The code would be handy to know, some will say abs sensor followed by mechanical problem which means its not seeing the pick up ring so it is possible to assume its the sensor when it isnt.
Needs better diagnosing, you can get apps these days which are pretty good but you would need the...