May not be the sensor itself causing the errors - sometimes the metal ring gets rusted and broken causing ABS error codes. Happened on an old (1998 reg) Ford I have.
Was a cheap fix, but fiddly - £2 for the reluctor ring (as they are called) from Fleabay (Ford wanted £40) and then just a case of removing hub and slipping the ring on.
You can test each sensor with a multimeter - may need two people though. Jack up vehicle and put front on axel stands. Disconnect ABS sensor near the wheel and check resistance (ohms). Then spin the wheel by hand (this is where you may need a second person) and check that the ohms change. Indicates working sensor.
Repeat for each wheel in turn. Fiddly, but google checking ABS sensors with mulitmeter for more info/videos on youtube.