P0520 is the oil pressure sensor or the sensor circuit:
P0520-ENGINE OIL PRESSURE SENSOR CIRCUIT
- When Monitored: Ignition on, engine not running.
- Set Condition: The PCM senses the oil pressure is out of the calibrated range.
Possible Causes
(G6) ENGINE OIL PRESSURE SENSOR SIGNAL CIRCUIT SHORTED TO BATTERY VOLTAGE
RESISTANCE IN (G6) ENGINE OIL PRESSURE SENSOR SIGNAL CIRCUIT
(G6) ENGINE OIL PRESSURE SENSOR SIGNAL CIRCUIT SHORTED TO GROUND
RESISTANCE IN (F856) 5-VOLT SUPPLY CIRCUIT
(F856) 5-VOLT SUPPLY CIRCUIT SHORTED TO GROUND
RESISTANCE IN THE (K900) SENSOR GROUND CIRCUIT
ENGINE OIL PRESSURE SENSOR
PCM
if connections are OK, most likely the sensor.