Replacing Sensors

I had two window sensors that were damaged by water. I have the new sensors but wondering what the easiest way to replace them is. Should I just delete the existing and program these as new or is there an easy way to program them in with the existing settings, just replacing the serial number?

just replace the serial

If nothing else has changed with the intended use of the sensors, replacing the serial number and testing is all you need.