A check engine light with P0340 or P0016 makes the Audi camshaft sensor look guilty right away. Sometimes it is. Often, though, the sensor is just the messenger telling you about wiring, oil or the timing chain. On the supercharged 3.0T, one of the most common timing-related noises, a short rattle on cold start, has nothing to do with the sensor at all, and our 3.0T oil check valve set is built for exactly that problem. This guide explains what the camshaft sensor does, what each code really means, and how to find the actual fault before you buy anything.
What the Camshaft Position Sensor Does
Your engine has a crankshaft sensor and camshaft sensors. The crank sensor tells the ECU how fast the engine is turning and where the crankshaft is. The camshaft sensor, a Hall-type sensor reading a target on the camshaft, tells the ECU which stroke each cylinder is on. Put the two together and the ECU can time fuel injection and spark for each cylinder.
On engines with variable cam timing, like the Audi 3.0T, the cam signal has a second job. The ECU commands the cam adjusters to a target angle and uses the cam sensor to confirm they actually got there. That is why camshaft codes come in two flavors: circuit problems (the signal is missing or garbage) and timing problems (the signal is fine, but the cam is not where it should be).
On a V6, each cylinder bank has its own cams, so codes name a bank. Bank 1 is always the side with cylinder 1.
Audi Camshaft Sensor Codes and What They Usually Mean
| Code | Generic meaning | Where to look first |
|---|---|---|
| P0340 / P0345 | Camshaft position sensor circuit, bank 1 / bank 2 | Connector, wiring, sensor power and ground, then the sensor |
| P0341 / P0346 | Camshaft sensor circuit range or performance, bank 1 / bank 2 | Intermittent wiring, signal noise, the sensor, then mechanical timing |
| P0016 / P0018 | Crankshaft and camshaft position correlation, bank 1 / bank 2 | Oil level and condition, chain, guides and tensioners, cam adjuster, then sensors |
| P0011 / P0021 | Intake cam timing over-advanced or system performance, bank 1 / bank 2 | Oil level and spec, cam adjustment valve, adjuster |
| P0012 / P0022 | Intake cam timing over-retarded, bank 1 / bank 2 | Oil level and spec, cam adjustment valve, adjuster |
The pattern to remember: circuit codes point toward the sensor and its wiring, while correlation and timing codes point toward oil and mechanical parts. A brand-new sensor fixes the first group far more often than the second.
Symptoms of a Camshaft Sensor or Cam Timing Problem
- ✅ Check engine light with one of the codes above
- ✅ Longer cranking before the engine fires, or a no-start
- ✅ Stalling, especially when coming to a stop
- ✅ Rough idle, hesitation or a lazy throttle response
- ✅ Reduced power or a limp mode warning
- ✅ On the supercharged 3.0T: a rattle for the first few seconds after a cold start, sometimes alongside correlation codes
How to Diagnose It Before You Buy a Sensor
- Read the codes and freeze frame data. Note the bank and the conditions. A code that only sets on cold start tells a very different story than one that sets on the highway.
- Check the oil. Cam adjusters and chain tensioners run on oil pressure. Low oil, the wrong spec or overdue oil can set timing codes on its own.
- Inspect the connector and wiring. Look for oil inside the connector, broken locking tabs and chafed wires near the cylinder heads. Fix wiring before sensors.
- Watch live data. A capable scan tool shows actual versus specified cam angle for each bank. Compare banks at idle and under load.
- Test the circuit. Confirm power, ground and signal. On a scope, a healthy Hall sensor makes a clean square wave. If both banks use the same part number, swapping sensors shows whether the code follows the part.
- Go mechanical if correlation codes persist. With good sensors and good oil, chain stretch and worn guides or tensioners move to the top of the list. On the supercharged 3.0T the timing chains live at the back of the engine, so that repair is an engine-out job.
Still chasing a light with no obvious cause? Our Audi check engine light causes guide covers the ten most common codes on the 3.0T and 4.0T.
The Supercharged 3.0T: Oil Check Valves and Cold-Start Rattle
Here is the one that fools people. On many supercharged 3.0T engines, especially B8.5 cars, Audi fitted blank plugs where functional oil check valves would normally keep oil in the system overnight. With the engine off, oil drains out of the hydraulic timing chain tensioners. On the next cold start, the chain slaps against its guides for 1 to 3 seconds until oil pressure builds back up.
That rattle is mechanical, so no sensor will fix it, and repeated slapping wears the plastic timing guides that keep cam timing where the ECU expects it. Our check valves stop the drain-back so the tensioners are primed the instant the engine fires.
- ✅ Vorsprung 3.0T oil check valve set ($39.99): two valves, enough for the complete valley service.
- ✅ German-made 3.0T oil check valve set ($99.99): the same two-valve service with German-made valves.
- ✅ Fitment: supercharged 3.0T (EA837) S4, S5, SQ5, A6, A7 and Q7, 2009 to 2017 (S5 2010 to 2017, SQ5 2014 to 2017).
The valves sit in the engine valley, so the smart time to fit them is when the supercharger is already off for a thermostat, PCV or water pump job. Our B8.5 under-supercharger service kit covers the rest of that job, and the Audi 3.0T PCV valve replacement guide walks through it.
Shop the 3.0T Oil Check Valve Set, $39.99
✅ Two valves for a complete valley service · ✅ Fitment help by VIN at help@vorsprungautowerk.com · ✅ Free US shipping on orders over $425
Misfire or Cam Sensor? Rule Out the Coils
Misfire codes (P0300 through P0306) are not camshaft codes, but a weak ignition coil makes an engine run rough enough that sensors get blamed. The cheapest test in the book: move the coil from the misfiring cylinder to another one and see if the misfire follows it. If it does, it is the coil.
Our Zeus ignition coil kit for the supercharged EA837 ($129.99) fits every supercharged 3.0T from the B8 S4 to the 4M Q7, and the Zeus kit for the turbo EA839 ($199.99) covers the B9 S4, S5 and SQ5, C8 A6 and A7, D5 A8, Q7 and Q8. Both are plug and play with no tune required. The full swap test lives in our Audi ignition coil replacement guide.
The Turbo 3.0T (EA839): Same Logic, Different Engine
The B9 and B9.5 S4, S5 and SQ5, plus the C8 A6 and A7, use the turbocharged EA839. The code logic is identical: circuit codes point at wiring and sensors, correlation and timing codes point at oil and mechanical parts.
One common mix-up on tuned EA839 cars: boost and manifold pressure readings come from the MAP sensors, not the camshaft sensors. If your tune runs more boost than the factory 3 Bar MAP sensors can read, our 4 Bar MAP sensors for the EA839 ($99.99, two per kit) replace them and plug into the factory harness. Different sensor, different job, so do not let a boost-related code send you shopping for cam sensors.
Replacing an Audi Camshaft Sensor the Right Way
- ✅ Order by VIN. Part numbers vary by engine and sometimes by bank and model year.
- ✅ Use OE-supplier quality. Intermittent codes from cheap sensors cost more in diagnosis than you save on the part.
- ✅ Fit a new seal and clean the mounting bore so the sensor seats at the right depth.
- ✅ Torque to spec from the repair information for your engine.
- ✅ Clear codes and verify. Drive until the readiness monitors complete. A returning correlation code means the cause is somewhere else.
Want the bigger picture on this engine family? Our Audi 3.0T supercharged engine guide covers the common failures on Gen 1 and CREC engines.
Audi Camshaft Sensor FAQ
What does an Audi camshaft sensor do?
It is a Hall-type sensor that reads a target on the camshaft. The ECU compares that signal with the crankshaft sensor to know exactly where each cylinder is in its cycle and, on engines with variable cam timing, to confirm the cam adjusters are hitting the angle it asked for.
What are the symptoms of a bad camshaft position sensor?
A check engine light with a P0340 family code, longer cranking or a no-start, stalling, rough running, hesitation and reduced power. The same symptoms can come from wiring, oil or timing problems, which is why diagnosis comes before parts.
Is P0016 a bad camshaft sensor?
Not necessarily. P0016 and P0018 mean the crankshaft and camshaft signals do not agree on timing. A faulty sensor can do that, but so can a stretched chain, a worn guide or tensioner, a sticking cam adjuster or low oil. Check the mechanical side before you replace the sensor.
Can I drive with a camshaft sensor code?
A car that starts and runs normally can usually be driven gently to a shop, but a cam sensor or timing fault can cause stalling or a no-start. If the code comes with a rattle, a flashing light or a big change in how the engine runs, stop and diagnose it first.
Why does my Audi 3.0T rattle for a few seconds on a cold start?
On many supercharged 3.0T engines, especially B8.5 cars, oil drains out of the hydraulic timing chain tensioners overnight, so the chain slaps the guides for 1 to 3 seconds until oil pressure builds. Our 3.0T oil check valve set keeps the tensioners primed.
Will a new camshaft sensor fix a cold-start rattle?
No. A rattle is mechanical. A new sensor will not quiet the chain, and if a correlation code is caused by chain or tensioner wear, it will come back.
Should I use an aftermarket camshaft sensor?
Buy the part number your VIN calls for from a quality OE supplier. Bargain sensors are a common source of intermittent codes, and an intermittent code is the hardest kind to chase.
What should I do after replacing a camshaft sensor?
Clear the codes, then drive the car normally until the readiness monitors complete. If a correlation code returns with a known-good sensor, the cause is elsewhere, usually oil, the cam adjuster or chain timing.
Bottom Line on the Audi Camshaft Sensor
An Audi camshaft sensor code is a starting point, not a shopping list. Circuit codes lead to wiring and the sensor. Correlation and timing codes lead to oil, cam adjusters and the chain. On the supercharged 3.0T, a cold-start rattle is your engine asking for the 3.0T oil check valve set, and a rough-running engine deserves a coil swap test before anything else. Diagnose first and you skip paying the Audi Tax on parts that were never broken.
Shop Zeus EA837 Coils, $129.99
Drive the difference. Drive Vorsprung.
Prices checked October 14, 2026 and subject to change.


