An RTD change is a pocket, a head and three wires. Isolate the input or inhibit the point, withdraw the old element, fit the new one to the bottom of the pocket with thermal paste so it reads the metal and not the air, and wire it three-wire: two wires to one end of the element, one to the other, per the head's markings. Ohm it at the head and at the far end of the cable against the table at the temperature it is sitting at, and the two readings should agree within the cable's resistance.
A thermocouple change is the same with two differences: polarity matters, and the extension wire from the head to the input must be the same thermocouple type, color-coded, with no copper in between. If you must splice, splice both conductors in the same place at the same temperature. Check the reading against a neighbor on the same engine before you call it done.
Pocket rules. Element to the bottom of the pocket with paste. Three-wire means three. Thermocouple: type and polarity. Compare with a neighbor. Un-inhibit the point.