the fact you have swapped engines increases the chance that it is the sensor.
Most XEs weren't fitted with the correct sensor for the twin gauges.
As I said, easy to check. If there are two connections coming out the back it is correct, only one it is the wrong one. Check the wiring, clean the connectors etc.
99% of oil pressure problems on XE relate to low not high pressure.