mercedes c 300 abs esp lights

dealer said computer showed that L/R axel  magnetic pick up rusted off and will need replaced.  what is that?  just changing sensor wont solve abs/esp light problem?