Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All Articles →
🧭 Diagnostic Flowchart 🎬 Helpful Videos 🛍️ Shop This Part

P0340 on 2005-2010 Scion tC: Camshaft Position Sensor Causes and Fixes

P0340 on a 2005-2010 Scion tC most often means the camshaft position sensor has failed. It's an affordable and easy DIY replacement located on the driver's side of the cylinder head, typically costing $25-$75 for a new sensor. Before replacing, check the engine oil level, as low oil is a known issue on the 2AZ-FE engine and can cause timing-related faults.

18 minutes to read 2005-2010 Scion tC
Most Likely Cause
Failed Camshaft Position Sensor
Difficulty
1/5
Est. Time
0.6 hrs
DIY Doable?
✅ Yes
Shop Labor
$50 – $200
Parts Price
$25 – $75
⚠️ Drivable, but... — Driving is not recommended as the engine could stall unexpectedly, run very poorly, or fail to restart, potentially leaving you stranded. Some owners report the engine dying in traffic and refusing to restart.
Key Takeaways
  • P0340 on your Scion tC points to an issue with the camshaft position sensor circuit.
  • The most likely fix is replacing the camshaft position sensor, which is an easy and affordable DIY job.
  • Before replacing any parts, check your engine oil level. Low oil is a well-documented issue with the 2AZ-FE engine (TSB S-SB-0031-14) and can cause timing-related problems.
  • Also, check your battery voltage and inspect the engine ground wires on the cylinder head, as both are known, simple-to-fix causes for this code.
  • If a new sensor doesn't fix the code, inspect the wiring and connector carefully before considering more complex issues like the timing chain.
The trouble code P0340 stands for 'Camshaft Position Sensor 'A' Circuit Malfunction'. This means the Engine Control Module (ECM) has detected a problem with the signal coming from the camshaft position sensor. This sensor's job is to tell the computer the exact rotational position of the engine's camshaft. The computer uses this critical information to control ignition timing and fuel injection. When the signal is lost, incorrect, or erratic, the engine's timing can be thrown off, leading to various running issues like stalling, hard starts, or a no-start condition.

What's Unique About the 2005-2010 Scion tC

The 2005-2010 Scion tC uses the 2.4L 2AZ-FE engine, which has a single camshaft position sensor located on the intake camshaft. While the P0340 code is often a simple sensor failure, this engine is known for potential oil consumption issues which were addressed in Toyota Technical Service Bulletin (TSB) T-SB-0094-11. Chronically low oil levels can accelerate wear on the timing chain and tensioner, which in rare cases can cause timing to jump and trigger a P0340 code. Therefore, it's wise to check the oil level immediately when this code appears. Additionally, loose ground wires on the cylinder head (specifically points 'EG' and 'EH') are a known issue on the 2AZ-FE that can cause an intermittent P0340.

Symptoms You May Notice

  • Check Engine Light is on
  • Engine is hard to start or cranks for a long time
  • Engine will not start at all
  • Engine stalls unexpectedly while driving or idling, sometimes when shifting from Park to Drive.
  • Rough idle and engine misfires
  • Noticeable loss of power and hesitation during acceleration
  • Engine may backfire during starting attempts.
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing the crankshaft position sensor. While related, the crankshaft sensor has its own specific trouble code (P0335). If only P0340 is present, focus on the camshaft sensor circuit first.
  • Immediately replacing the sensor without checking wiring. Many owners replace the sensor only to have the code return because the actual fault was a loose ground wire or damaged connector.

Most Likely Causes

  1. Failed Camshaft Position Sensor 🔴 High Probability → Shop Engine Camshaft Position Sensor Electronic sensors can fail over time due to heat cycles and vibration. This is the most common point of failure for this code. Sludge from poor oil quality or infrequent oil changes can also coat the sensor tip, blocking its reading.
    How to confirm: Test the sensor's internal resistance with a multimeter. For the 2AZ-FE, it should be between 1,630-2,740 Ω when cold and 2,065-3,225 Ω when hot. A reading outside this range indicates failure. The easiest confirmation for a DIYer is to replace it, as it's a relatively inexpensive part.
    Typical fix: Replace the camshaft position sensor. It is recommended to apply a thin layer of clean engine oil to the new sensor's O-ring before installation.
    Est. part cost: $25-$75
  2. Wiring or Connector Issue 🟡 Medium Probability The wiring harness and connector are exposed to engine heat and vibration, which can lead to brittle plastic, loose connections, or corrosion over time. A known issue on the 2AZ-FE is a loose ground wire bolt on the cylinder head, which can cause intermittent signal loss.
    How to confirm: Visually inspect the sensor's connector and nearby wiring for any signs of damage, corrosion, or loose pins. Specifically check the ground wire attachment points on the cylinder head, often labeled 'EG' and 'EH', for tightness. Use a multimeter to check for continuity between the sensor connector and the ECM.
    Typical fix: Repair the damaged section of wiring, clean/replace the connector, or tighten the loose ground bolt on the cylinder head.
    Est. part cost: $5-$50
  3. Stretched Timing Chain or Failed Tensioner ⚪ Low Probability → Shop Engine Timing Chain The 2AZ-FE engine can suffer from excessive oil consumption due to piston ring design, as documented in TSB S-SB-0031-14. Running the engine with low oil can cause premature wear on the timing chain, guides, and tensioner. A stretched chain can cause the camshaft and crankshaft to be out of sync, triggering this code, sometimes with P0016.
    How to confirm: Listen for a rattling noise from the front of the engine, especially on cold startups. 🎬 Listen: What a rattling timing chain sounds like on the 2AZ-FE. This is a more advanced diagnosis that requires removing the valve cover to check for chain slack and verifying timing marks.
    Typical fix: Replace the timing chain, tensioner, and guides as a kit. This is a significant repair.
    Est. part cost: $100-$250

Rare But Worth Checking

  • Failing Engine Control Module (ECM): → Shop Engine Control Module (ECM) This is extremely rare. The ECM should only be considered after all other possibilities, including sensors, wiring, and mechanical timing, have been thoroughly ruled out.
  • Weak or Failing Battery: → Shop Vehicle Battery A Toyota TSB (T-TT-0010-10 Rev) confirms that low battery voltage during cranking can cause inconsistent engine rotation speed, which may trigger a P0340. Always ensure the battery is healthy (12.6V+ engine off, 13.7-14.7V running) before diagnosing other components.
  • Sensor Clearance Issues: While documented on other Scion models, manufacturer service bulletin #S-SB-0013-14 notes that P0340 and engine misfire codes can occur if the camshaft position sensor clearance is out of specification.

Diagnosis Steps

  1. Read the trouble codes with an OBD-II scanner to confirm P0340 is present.
  2. Check the engine oil level and condition. Top off or change if necessary. Dirty or low oil can cause this code.
  3. Test the battery. Ensure it has a full charge (approx. 12.6V engine off) and the charging system is working (13.7-14.7V engine on). A weak battery is a known cause.
  4. Locate the camshaft position sensor. On the 2AZ-FE engine, it is on the driver's side of the cylinder head, near the top, held by a single 10mm bolt.
  5. 🎬 Watch: See exactly where the sensor is located on your engine.
  6. Visually inspect the sensor's electrical connector and wiring for any obvious damage, corrosion, or loose connections. Pay close attention to the plastic locking tab, which can become brittle and break.
  7. Inspect engine ground points. Check for loose ground wire bolts on the cylinder head, specifically 'EG' (front of head) and 'EH' (rear of head, near intake manifold).
  8. If wiring looks good, the most common next step is to replace the camshaft position sensor. Lubricate the new O-ring with fresh oil before installation.
  9. Clear the code with the scanner and perform a drive cycle to see if the code returns.
  10. If the code returns, perform a resistance test on the old sensor (and the new one) to verify it's within spec (1,630-2,740 Ω cold).
  11. If the sensor is good, a more in-depth diagnosis is needed. Use a multimeter to test the wiring harness for continuity between the sensor connector and the ECM.
  12. If wiring and sensor are confirmed good, listen for any rattling noises that could indicate a timing chain issue. This may require professional diagnosis.

Parts You'll Likely Need

  • Camshaft Position Sensor (OEM #90919-05047 (may be superseded by 90080-19024)) — This sensor is the most frequent cause of a P0340 code and is a simple, direct replacement. Note that some parts catalogs incorrectly label this a crankshaft sensor, but it is used for the camshaft on the 2AZ-FE.
    Trusted brands: Denso (OEM Manufacturer), NTK/NGK, Hitachi, SKP
    OEM price range: $60-$90
    Aftermarket price range: $25-$60

Related Codes That Often Appear With This One

  • P0335 — If both the camshaft and crankshaft sensor signals are lost, it could point to a more significant wiring issue, a problem with a shared power/ground circuit, or a failing ECM.
  • P0300, P0301, P0302, P0303, P0304 — These are misfire codes. A bad camshaft position sensor signal disrupts proper ignition and fuel timing, which can easily lead to the engine misfiring. Oil consumption leading to fouled plugs can also set these codes.
  • P0016 — Crankshaft/Camshaft Position Correlation. This code is more likely to appear if the root cause is mechanical, such as a stretched timing chain, indicating the two sensors' readings are out of sync.

Technical Service Bulletins (TSBs) & Recalls

  • T-SB-0094-11 / S-SB-0031-14: Details the excessive oil consumption issue on 2AZ-FE engines and the repair procedure, which involves replacing pistons and rings. This is a critical related issue that can lead to timing problems.
  • T-SB-0158-14: Outlines the official inspection procedure to confirm if a 2AZ-FE engine is consuming excessive oil, a prerequisite for the repair covered in T-SB-0094-11.
  • T-TT-0010-10 Rev: A technical tip from Toyota stating that low battery voltage can cause P0340 during engine cranking, advising technicians to check freeze-frame data and battery health before replacing sensors.
  • S-SB-0033-13 Rev: A manufacturer bulletin for other Scion platforms notes that vehicles may exhibit P0340 and engine misfire codes due to the camshaft position sensor being out of specification.

Platform-Specific Known Issues

  • The 2AZ-FE engine in the 2005-2010 Scion tC is widely known for excessive oil consumption due to piston/piston ring design issues. Toyota issued TSB S-SB-0031-14 for the Scion tC to address this. Failure to maintain the proper oil level can starve the timing chain tensioner of oil pressure, leading to accelerated wear of the timing chain system and potentially causing this code in severe cases.
  • Loose ground wires bolted to the cylinder head are a documented cause of intermittent P0340 and other codes on the 2AZ-FE. A user on YouTube with a 2006 Camry solved P0340 by tightening a loose ground bolt on the back of the head.

Mechanic-Grade Diagnostic Values

  • Camshaft Position Sensor Resistance (2-wire sensor) — expected: 1,630 to 2,740 Ω (Cold), 2,065 to 3,225 Ω (Hot). Failure: A resistance reading outside of the specified range for the sensor's temperature.
  • Camshaft (G2) and Crankshaft (NE) Sensor Waveform — expected: Using an oscilloscope, check for a clean, consistent square wave signal from the G2+ terminal and a clean, consistent sine wave from the NE+ terminal relative to ground while the engine is cranking or idling. The G2 signal should appear 3 times for every two crankshaft rotations.. Failure: A missing, noisy, or erratic waveform from the G2+ terminal indicates a problem in the camshaft sensor circuit. Grounding failure of the shielded wire is a common cause of noise.

Hidden / Shadow Codes Worth Checking

  • Freeze Frame Data: Not a hidden code, but a critical data snapshot stored by the ECM at the moment a DTC like P0340 is set. It records parameters like engine speed, vehicle speed, engine temperature, and fuel system status. (see via Use a professional scan tool like Toyota's Techstream or an advanced OBD-II scanner. This data helps a technician understand the exact conditions under which the fault occurred (e.g., during cranking, at idle, under load), which is crucial for diagnosing intermittent issues.)

Scan Tool Commands That Help

  • Techstream (or equivalent professional scanner): DTC Info / Pending Codes — After clearing codes and running the engine, checking for pending codes can confirm if the fault condition has been met again before the MIL is commanded on, speeding up verification of a fix.
  • Techstream (or oscilloscope function): Waveform Viewer (G2+ vs NE+) — To visually inspect the integrity of the camshaft and crankshaft sensor signals in real-time. This is the definitive test to distinguish between a sensor failure, wiring issue, or mechanical timing problem.

Wiring & Ground Locations

  • EG — On the front (exhaust side) of the cylinder head. A black and white wire is typically attached here.. This is a primary ground point for engine sensors. A loose or corroded connection here can cause intermittent or complete loss of the camshaft position sensor signal, triggering P0340.
  • EH — On the back (intake side) of the cylinder head, often difficult to see, located near where the intake manifold loops.. This is another critical engine ground. A loose bolt at this location is a documented cause of P0340 on the 2AZ-FE, as it can cause signal interference or loss.
  • ECM Connector (G22+) — At the Engine Control Module (ECM). The specific pin number for the camshaft position sensor signal.. This is the destination for the camshaft sensor signal. Testing for the signal waveform or checking for continuity between this pin and the sensor connector is the final step in diagnosing a wiring harness issue.

Real Owner Repair Stories

  • YouTube user 'Praise God' (2006 Toyota Camry with 2AZ-FE engine) — Car ran great for a few days after a cylinder head replacement, then started acting up, setting P0340 and P0010.
    ❌ Tried (didn't work) The owner was struggling to diagnose the issue, implying that simple checks did not resolve it.
    ✅ What actually fixed it The owner's wife found a diagram for ground locations. They discovered the ground bolt for point 'EH' on the back of the cylinder head near the intake manifold was 'terrible loose'. Tightening this loose ground bolt solved the codes.

OEM Part Supersession History

  • 90919-0504790080-19024 — Standard part number consolidation and update by Toyota.
    Heads up: The new part number is a direct replacement for the original. No known incompatibility issues.

Diagnostic Flowchart

Start by verifying battery health and engine oil levels. The 2AZ-FE engine has specific Toyota TSBs linking low cranking voltage and excessive oil consumption directly to P0340 triggers.
→ Charge or replace the battery. Per Toyota Tech Tip T-TT-0010-10 Rev, low battery voltage during engine cranking is a known cause of false P0340 codes on the 2AZ-FE.
Check the engine oil level on the dipstick. Is the oil severely low or sludgy?
→ Top off or change the oil, then clear the code. The 2005-2010 Scion tC is prone to excessive oil consumption (TSB S-SB-0031-14). Low oil starves the timing chain tensioner, causing chain slack that can trigger P0340.
Inspect the camshaft position sensor connector and the ground wire bolts on the cylinder head (specifically labeled 'EG' and 'EH'). Are they loose, brittle, or damaged?
→ Repair the connector or tighten the 'EG'/'EH' ground bolts. Loose cylinder head grounds are a highly documented cause of intermittent P0340 signal loss on the 2AZ-FE engine.
Remove the camshaft position sensor (driver's side of head, held by a 10mm bolt). Test its internal resistance with a multimeter. Is it between 1,630-2,740 Ω (cold)?
→ Replace the camshaft position sensor. This is the most common failure point. Remember to lubricate the new sensor's O-ring with fresh engine oil before installation.
Listen to the engine on a cold startup. Is there a noticeable rattling noise from the front of the engine?
→ Suspect a stretched timing chain or failed tensioner. Remove the valve cover to check for chain slack and verify timing marks. This is often a secondary effect of the TSB S-SB-0031-14 oil consumption issue.
→ Use a multimeter to test for continuity between the sensor connector and the ECM. If wiring is intact, the ECM itself may require professional diagnosis.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

Scion tC 2AZ-FE

Symptoms: Experienced classic P0340 symptoms including hard starting, backfiring, and engine misfiring.

What fixed it: Diagnosed as a failed camshaft position sensor.

Source hint: ScionLife.com - Thread 'Where is the Cam Shaft Sensor? Code P0340..'

2005 Scion tC 2.4L (Turbocharged)

Symptoms: Engine would crank but refused to start, throwing both P0340 and P0335 codes.

What fixed it: Replacing the camshaft sensor did not resolve the issue; it was traced to a wiring harness problem associated with an aftermarket piggyback ECU.

Source hint: ScionLife.com - Thread '05 tC Cranks - Won't Start - Codes P0335B and P0340..'

2006 Toyota Camry 2.4L 2AZ-FE

Symptoms: Intermittent P0340 code and drivability issues.

What fixed it: Tightened a loose ground bolt on the back of the cylinder head, restoring the sensor's ground connection.

Source hint: YouTube user cited in vehicle_specific_issues

Frequently Asked Questions

Does TSB S-SB-0031-14 apply to my 2005-2010 Scion tC, and can it cause code P0340?
Yes. TSB S-SB-0031-14 (and T-SB-0094-11) addresses excessive oil consumption in the 2AZ-FE engine due to a piston ring design issue. Running the engine with low oil can starve the timing chain tensioner of oil pressure, leading to premature wear and chain stretch, which can throw the camshaft out of sync and trigger P0340.
Can a weak battery cause a P0340 code on the 2.4L 2AZ-FE engine?
Yes. According to Toyota technical tip T-TT-0010-10 Rev, low battery voltage during engine cranking can cause a P0340 code. Technicians are advised to check battery health (aiming for approx. 12.6V with the engine off) before replacing any sensors.
Where is the camshaft position sensor located on the Scion tC, and how do I test it?
On the 2AZ-FE engine, the sensor is located on the driver's side of the cylinder head near the top, secured by a single 10mm bolt. You can test it by measuring its internal resistance with a multimeter; it should read between 1,630-2,740 Ω when cold and 2,065-3,225 Ω when hot.
I replaced the camshaft position sensor on my tC but the P0340 code came back. What should I check next?
Check the engine ground points on the cylinder head. Loose ground wire bolts, specifically those labeled 'EG' (front of the head) and 'EH' (rear of the head near the intake manifold), are a documented cause of intermittent signal loss and P0340 codes on this engine.
How do I know if my P0340 is caused by a stretched timing chain instead of a bad sensor?
If your sensor and wiring test perfectly fine, listen for a rattling noise coming from the front of the engine, especially during cold startups. This indicates timing chain slack, which requires removing the valve cover to verify timing marks and check the tensioner.
Scion tc 2006-2010 camshaft position sensor. (LOCATION)
Scion tc 2006-2010 camshaft position sensor. (LOCATION)
How To Replace A Camshaft Position Sensor On A Scion tc! Toyota & Lexus 2.5 V4 | P0368
How To Replace A Camshaft Position Sensor On A Scion tc! Toyota & Lexus 2.5 V4 | P0368
Praise God, 06 Camry 2AZFE P0010 P0340 Codes solved!
Praise God, 06 Camry 2AZFE P0010 P0340 Codes solved!
2AZFE Engine Rattling. 2.4L Camry, Scion TC, Solar.
2AZFE Engine Rattling. 2.4L Camry, Scion TC, Solar.
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Jun 8, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code P0340 (Deep Dive) for:
  • Scion tC: 200520062007200820092010
In this article
🧭 Diagnostic Flowchart
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part