P0520: oil pressure sensor
Engine Oil Pressure Sensor/Switch Circuit/Performance
Severity: high
Updated: 1 Dec 2026 · Generic OBD-II code (SAE J2012 / ISO 15031-6). Written with AI and reviewed; translated automatically from the Spanish original.
What it means
Code P0520 means the engine control module (ECU/PCM) has detected an abnormal signal in the engine oil pressure sensor or switch circuit, or that the pressure measured is not consistent with what is expected. The ECU compares the reading with reference values that depend on oil temperature, engine speed and load, whose exact values depend on the manufacturer. If the signal is out of range, cut off or does not change as it should, the fault is stored and, depending on the manufacturer, the warning light or the oil pressure light may come on. It is important to distinguish between an electrical problem with the sensor or its wiring and a genuinely low or high pressure in the oil circuit, since only the latter poses a serious risk to the engine.
Can I keep driving?
Only as far as you need to, and gently.
This fault can cause serious damage or affect safety. Avoid motorways, heavy loads and high revs, and have it diagnosed as soon as possible. If the engine shakes, loses power or a red light comes on, stop where it is safe.
If in doubt, put safety first: a red or flashing warning light, smoke, a burning smell or any change in the brakes or steering are reasons to stop.
Got P0520? Ask about your car
Tell us your car and what you notice: we answer right here, no account needed.
DATAIAO’s answer
AIYou're talking to DATAIAO's AI, specialised in car mechanics. Check anything important before acting. What we keep
Save this answer and your car, and I’ll ask you tomorrow whether it’s fixed.
Free and no card needed: 10 questions a day, your Garage and MOT/inspection reminders.
Warning: hazardous work
Affects:
Disclaimer. This information is for guidance only, is generated by artificial intelligence and may contain errors or omissions. Working on these systems can cause serious injury or death, as well as damage to the vehicle or to third parties. If you decide to do it, you do so at your own risk: always follow the manufacturer's workshop manual and the applicable regulations, and go to a workshop if you do not have the right training and tools. To the extent permitted by law, DATAIAO is not liable for damage arising from carrying out this work.
How the ECU detects it
The ECU evaluates the oil pressure sensor continuously while the engine is running, paying particular attention after starting and at idle. The fault is confirmed after several driving cycles in which the reading is out of range or does not match the expected pressure model; the number of cycles and how the warning light is triggered depend on the manufacturer. A genuinely low pressure usually depends on oil temperature and engine speed, so the code may appear more often when cold, at idle or at high temperature.
Symptoms
- Malfunction indicator light (MIL) on, steady or flashing.
- Oil pressure warning in the instrument cluster, on some vehicles.
- Erratic, missing or fixed oil pressure reading, if the cluster displays it.
- Uneven idle or engine speed that rises and falls for no reason, on vehicles whose management depends on pressure.
- Loss of power or reduced operating mode on some models.
- Oil consumption or mechanical noises if the cause is genuinely low pressure.
- In many cases no clear symptoms are noticed and the only sign is the stored code.
Common causes
- Sensor connector or wiring with poor contact, corrosion or moisture.
- Faulty or miscalibrated oil pressure sensor or switch.
- Genuinely low oil pressure due to low oil level, incorrect viscosity or degraded oil.
- Worn oil pump or one struggling to maintain pressure.
- Relief or pressure regulator valve stuck or faulty.
- Clogged oil filter or lubrication gallery with restricted flow.
- Short to earth or to positive in the signal wiring or the sensor's reference supply.
- ECU fault, which is uncommon, after all other causes have been ruled out.
What to check
- Check the oil level and condition with the dipstick and confirm the viscosity is the one specified by the manufacturer.
- Visually inspect the sensor connector, looking for moisture, corrosion, bent pins or stripped wires.
- Read the live data from the oil pressure sensor with a scanner and compare it with the actual measured pressure or the manufacturer's reference values.
- Check the sensor's power supply and earth according to the vehicle's wiring diagram.
- Measure continuity and resistance of the wires between sensor and ECU, and look for shorts to earth or to positive.
- Cross-check the actual pressure with a pressure gauge at the correct test port, to find out whether the problem is pressure or signal. If you are unsure about the actual pressure, do not keep driving and consult a professional.
- If the actual pressure is low, check the pump, pressure regulator valve, filter and galleries before replacing parts.
- If the actual pressure is correct and the wiring is sound, replace the sensor with an original or reputable-quality part and clear the code to verify the repair.
- As a last resort, check the ECU against the manufacturer's calibration data and software updates, after ruling out all other causes.
Common diagnostic mistakes
- Replacing the sensor without measuring the actual oil pressure, which leaves the underlying cause unresolved.
- Confusing the oil pressure sensor with the temperature sensor or with the switch that turns on the warning light.
- Clearing the code without correcting the cause, so the light usually returns after a few driving cycles.
- Ignoring a genuine low pressure warning because the sensor reading looks correct, without cross-checking with a pressure gauge.
- Not checking the connector and wiring, a common and cheap cause to fix.
- Assuming the ECU is faulty before ruling out the sensor, wiring and actual pressure.
Typical repairs
From the simplest and cheapest to the most expensive. Which one applies depends on the diagnosis.
- Clean and retighten the sensor connector, removing corrosion and moisture.
- Repair damaged or poorly connecting wiring, with correct and protected joins.
- Change the oil and filter with the correct viscosity and specification if the oil level or condition is poor.
- Replace the oil pressure sensor with a reputable-quality part.
- Clean or replace the pressure regulator or relief valve.
- Replace the oil pump if it does not maintain the specified pressure.
- Check or replace the lubrication circuit if there are restrictions or serious leaks.
- Reprogram or replace the ECU only as a last resort, after ruling out all other causes.
Frequently asked questions
Can I keep driving with code P0520 active?
It depends on whether the oil pressure is really correct. If the fault is only in the signal and a pressure gauge confirms normal pressure, the short-term risk is low, although it should be looked at soon. If the actual pressure is low, if the oil pressure warning light comes on or if you notice mechanical noises, you must stop the engine as soon as possible, because lack of lubrication can damage bearings and other parts within a short time. If in doubt, do not drive and take the vehicle to a garage.
Can I just clear it? Clearing the code does not fix the fault: if the cause is still there, it comes back, and with the engine warning light on the car will fail its roadworthiness test (MOT in the UK).
General information about a generic code. The exact causes depend on the make and engine: confirm them with a diagnosis before replacing parts.
Related codes
- P0521 P0521 indicates a performance or correlation problem in the oil pressure sensor, whereas P0520 focuses on the electrical circuit or a signal out of range.
- P0522 P0522 signals a low voltage in the oil pressure sensor circuit, and usually points to a short to earth or faulty wiring.
- P0523 P0523 indicates a high voltage in the same circuit, most often from a short to positive or an open sensor.
- P0524 P0524 refers to an oil pressure that the ECU detects as too low, whereas P0520 may be caused only by an incorrect electrical signal.
- P0197 P0197 corresponds to a low signal from the oil temperature sensor, a different sensor although sometimes confused with it because both are in the lubrication circuit.