Your best bet is to put a suitable diagnostic reader on it. It'll tell you which sensor has failed, so there's minimal messing about. You will also need to clear the relevant code.
Changing modules isn't as easy as swapping one for another, as each module is assigned an address on the data bus. Replacing a module still won't work, as the rest for the modules on the system won't see the new module, because they're not looking for it.
Car electrical systems are very complex these days.