On a carbureted engine..
... disconnect the connector from the oil pressure sensor.
ring wrench «at 21» unscrew the sensor screwed into the cylinder block,..
...and take it off.
The connection is sealed with a metal ring.
On an injection engine, the sensor is screwed into the oil line fitting.
Install the sensor in reverse order.