P0340: Camshaft Position Sensor A Circuit Malfunction (Bank 1 or Single Sensor)
Updated November 12, 2026
The camshaft position sensor tells the engine computer where the camshaft is so it can time fuel and spark. P0340 means that signal is missing or doesn't make sense.
COMPZA may earn a commission when you buy through links on this page, at no extra cost to you. How we make money.
🔧 Want to check this yourself? An OBD2 scanner reads the code; models with live data also show the sensor readings used in the checks below. See code readers and scanners from $24.99 ↓ · Which scanner do I need?
Common causes
- A failed camshaft position sensor
- Damaged wiring or connector
- A stretched timing chain or slipped timing belt (less common)
Code meanings can vary slightly by manufacturer. Use these as a starting point and confirm with your vehicle's service information or a mechanic before replacing parts.
Symptoms
- Hard starting or no start
- Stalling or rough running
- Check engine light
Is it safe to drive?
Not recommended: the engine can stall without warning or fail to restart. If it runs rough or you suspect the timing belt or chain has slipped, don't keep running the engine; have it towed.
How to check it with a scanner
- Plug an OBD2 scanner into the port under the dashboard and read all stored codes and the freeze-frame data (the conditions when the code set).
- Inspect the sensor connector and wiring.
- Check for crank and cam correlation codes, which can point to timing problems.
- Test the sensor's signal against your vehicle's spec.
- After a repair, clear the code and drive normally for a few days to confirm it doesn't come back.
A basic code reader shows the code; scanners with live data let you watch sensor readings, which is what you need for most of the checks above. See OBD2 scanners under $100.
Code readers and scanners in stock
From partner stores' live product feeds. Check that the tool covers your vehicle's make, model and year on the retailer's page before you buy.
LAUNCH CR319 OBD2 Code Reader & Emissions Readiness Tester$24.99at LAUNCH X431 Online
LAUNCH CR529 OBD2 Code Reader with Live Data Stream$45at LAUNCH X431 Online
Autel MaxiLink ML529$52at AUTELOnline
AutoLink AL319$59at AUTELOnline
MaxiAP AP2500E$60at AUTELOnline
LAUNCH Creader VII+ Code Reader for Engine, ABS, SRS & Transmission$119at LAUNCH X431 Online Affiliate links. AUTELOnline prices updated Nov 14, 8:02 PM EST · LAUNCH X431 Online prices updated Nov 15, 12:27 AM EST.
Search eBay for your vehicle
Affiliate links: COMPZA may earn a commission from qualifying eBay purchases at no extra cost to you. Add your vehicle in eBay's parts finder to see parts that fit.
Questions
What does P0340 mean?
P0340 is the generic OBD2 code for "Camshaft Position Sensor A Circuit Malfunction (Bank 1 or Single Sensor)." The camshaft position sensor tells the engine computer where the camshaft is so it can time fuel and spark. P0340 means that signal is missing or doesn't make sense.
Is it safe to drive with P0340?
Not recommended: the engine can stall without warning or fail to restart. If it runs rough or you suspect the timing belt or chain has slipped, don't keep running the engine; have it towed.
How do I check P0340 myself?
Read the code and freeze-frame data with an OBD2 scanner, then: Inspect the sensor connector and wiring. Check for crank and cam correlation codes, which can point to timing problems. Test the sensor's signal against your vehicle's spec.
Related codes
📬 Get the weekly deals email
One email a week with the best current deals from our partner stores: home, kitchen, tech, car and gifts. No spam, unsubscribe anytime.
Emails include affiliate links; COMPZA may earn a commission at no extra cost to you. See our privacy policy.