Diagnose the P0522.
P0522 is the Diagnostic Trouble Code (DTC) for Oil Pressure Sensor Low and will appear if the oil pressure sensor voltage at the PCM drops .1 volts for 1/2 a second. You should also have a dash oil light for this, when it's occurring or when the computer "believes" it's occurring.
Step 1) Check oil. Are you low? Did you just do an oil change? Did you tighten the oil filter and the drain plug enough? Not the problem -Step 2.
Step 2) Inspect harness. It may be an Intermittent Code. A diagnostic trouble code that is not there every time the PCM checks the circuit is an intermittent DTC. Most intermittent DTC’s are caused by wiring or connector problems. Defects that come and go like this are the most difficult to diagnose; they must be looked for under specific conditions that cause them. The following checks may assist you in identifying a possible intermittent problem: Visually inspect related wire harness connectors. Look for broken, spread, bent, pushed out, or corroded terminals. Visually inspect the related harnesses. Look for chafed, pierced, or partially broken wire. If you have to start your car twice to get the oil light to turn off you might have an intermittent code.
Harness in good shape- Step 3.
Step 3) Replace the oil pressure sensor. Disconnect neg. terminal at battery. Still have an oil light? Have you pressure checked.