That is an oil temperature sensor and it has 2 pins.
If your code reader said you have a oil pressure problem, that is the wrong sensor. If you removed the oil temp sensor, the FSM says you need to replace it. On a 2.0, the oil pressure sensor is on the head and not on the block like most engines. Take off the engine cover and look on the passenger side of the engine. You almost have to feel under there to find it.
This is a pic using a mirror to see it.