P0520: Oil pressure sensor or switch circuit fault
The engine computer sees an electrical problem in the circuit of the oil pressure sensor or switch. It cannot trust the reading, so it no longer knows for sure whether the engine has the oil pressure it needs.
How the car decides
Some engines use a simple on/off oil pressure switch, others a sensor that sends a varying voltage. The engine computer, or on some cars the instrument cluster, watches that signal and sets P0520 when it is outside the possible range, missing, or shorted. This is an electrical code: it is about the sensor and its wiring, not a measured lack of oil pressure. Even so, it should never be brushed off, because the same circuit is what warns you of real oil loss. Oil pressure senders often leak oil through their body into the connector and harness, which causes both the code and a messy connector. If the sensor shares a 5-volt reference with other sensors, P0641 or P0651 may show up too.
Common causes of P0520
- Failed oil pressure sensor or switchCommon
- Oil-soaked or corroded connector, often from a leaking senderCommon
- Damaged wiring near hot exhaust parts or rotating componentsPossible
- Problem with the shared sensor reference voltage or groundPossible
- Wrong part fitted after a sensor replacementLess common
- Engine computer or cluster input faultLess common
Symptoms
- Oil pressure warning light on, flickering or never lighting at key-on
- Oil pressure gauge reading zero, maximum or jumping
- Often the engine sounds and runs normally
- Oil wetness around the sensor body or connector
What to check first
- Check the engine oil level on the dipstick with the car level and the engine off for a few minutes.
- Note what the dash oil light and any gauge do: a light that never comes on at key-on suggests an open circuit.
- Look at the sensor and its connector for oil seeping out of the sensor body.
- Listen for new ticking or knocking that would point to a real lubrication problem.
- If other sensor codes like P0641 are present, mention them; a shared reference fault changes where to look.
How urgent is it?
Treat it as urgent until real oil pressure is confirmed, because the warning system you rely on may not work. If the oil level is low, the light stays on while running, or the engine makes new noises, stop driving and have it checked; a mechanic can confirm actual pressure with a mechanical gauge.
General information, not a diagnosis of your car. Have a qualified mechanic confirm the cause before you replace parts, and stop driving if the car runs badly, overheats or the warning light flashes.
Questions
Can I drive with P0520?
Only after you are confident the engine really has oil pressure. The code is about the sensor circuit, but it also means your warning light may not tell you if pressure is lost. Check the oil level and have pressure confirmed before driving normally.
Does P0520 mean the oil pump is bad?
Not usually. P0520 is an electrical fault in the sensor circuit. A failing pump or real low pressure tends to show up as P0521 or as an oil warning with a healthy circuit.
Reading the code itself
- System
- P: Powertrain: engine, fuel, emissions or transmission
- Type
- P0: Generic: the same meaning on every make
- Subsystem
- 5: Vehicle speed, idle control and auxiliary inputs
- Fault number
- 20