P0340: Camshaft Position Sensor "A" Circuit (Bank 1 or Single Sensor)
Severity: medium
Updated: 15 Nov 2026 · Generic OBD-II code (SAE J2012 / ISO 15031-6). Written with AI and reviewed; translated automatically from the Spanish original.
What it means
The code indicates that the ECU has detected a camshaft position sensor signal that is missing, out of range or not consistent, on bank 1 or on the engine's single sensor. This sensor reports the angular position of the camshaft. Together with the crankshaft signal, it allows the ECU to know which cylinder is in the compression phase. The ECU detects it by comparing the signal received with the expected voltage or frequency values and with consistency relative to the crankshaft signal. If the signal is missing or does not match, it can turn on the fault warning light and switch to an alternative operating strategy. This strategy depends on the manufacturer and may limit performance or affect starting.
Can I keep driving?
Yes, but have it checked soon.
The car can normally be driven, but the fault can get worse or damage other parts over time (the catalytic converter or the particulate filter, for example). Book a diagnosis in the next few days.
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 P0340? Ask about your car
Tell us your car and what you notice: we answer right here, no account needed.
DATAIAO’s answer
AIYou are talking to an AI. It can make mistakes; it does not replace a professional. What we keep
Save this answer and your car, and I’ll ask you tomorrow whether it’s fixed.
Free and no card needed: 15 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.
Symptoms
- Fault warning light on in the instrument cluster.
- Jerking or misfiring, especially when accelerating.
- Difficulty starting or intermittent starting.
- Rough idle or stalling when stationary.
- Loss of power or poorer response to the throttle.
- Slightly higher fuel consumption than usual.
- Symptoms vary depending on the engine and the ECU strategy.
Common causes
- Faulty camshaft position sensor.
- Damaged connector or wiring, with corrosion, poor contact or bare wires.
- Camshaft timing reluctor or pulse plate that is damaged, displaced or dirty with metal or oil (depending on design).
- Mistimed timing: stretched chain or belt, or a jumped tooth, which alters the phase relationship.
- Power supply or earth fault at the sensor.
- ECU fault (less common).
- Electrical interference (uncommon).
What to check
- Read the other stored codes with an OBD reader, especially crankshaft or other phase sensor codes, and review live data if the reader shows it.
- Visually inspect the sensor connector and harness: corrosion, broken clips, chafed wires or damaged insulation.
- Check the cleanliness and condition of the sensor and its reluctor wheel.
- Check the sensor's power supply and earth with a multimeter according to the manufacturer's diagram.
- Check the sensor signal with an oscilloscope, if available, to see whether there are regular pulses.
- Verify the timing belt or chain alignment against the timing marks specified in the engine manual. If the engine must be turned by hand, do so only with the manufacturer's procedure: in interference engines, turning it without control or with the timing out of sync can damage valves and pistons.
- Work with the engine cold and switched off whenever possible. If the signal must be checked with the engine running, keep your hands clear of the fan, belts and hot parts.
- If checking the timing requires removing covers or tensioners, leave it to a specialist garage.
Frequently asked questions
Why does the engine sometimes not start when code P0340 appears?
On some engines, if the camshaft sensor signal fails completely, the ECU cannot determine the engine's phase. In that case it may block fuel injection or ignition during starting. Other manufacturers design the ECU to start using only the crankshaft signal, so the behaviour varies from vehicle to vehicle. As the fault is often intermittent, the engine may start on some attempts and not on others. Checking the connector and wiring first is a good starting point because it is simple and cheap. If the problem persists, the signal and the timing must be checked. Those checks should be carried out by professionals when they involve dismantling.
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.
More codes: ignition system and misfires
- P0303 · Cylinder 3 misfire detected
- P0304 · Cylinder 4 misfire detected
- P0305 · Misfire detected in cylinder 5
- P0306 · Cylinder 6 misfire detected
- P0307 · Cylinder 7 misfire detected
- P0308 · Cylinder 8 misfire detected
- P0325 · Knock Sensor 1 Circuit (Bank 1 or Single Sensor) Malfunction
- P0335 · Crankshaft Position Sensor "A" Circuit Malfunction