LEMON Manuals: Even more car manuals for everyone: 1960-2025
Home >> Toyota >> 2004 >> Matrix Base, FWD, Standard >> Repair and Diagnosis >> External Pages >> Different car >> Section 78 (Engine Control System Self-Diagnostics) >> Diagnostic Tests >> DTC P0340: Camshaft Position Sensor Circuit >> Diagnosis & Repair
April 5, 2026: LEMON Manuals is launched! Read the announcement.

Diagnosis & Repair

WARNING: This page is about a different car, the 2002 Toyota Avalon. However, it is still accessible from the selected car via links, so may be relevant.
  1. Disconnect electrical connector at camshaft position sensor. Camshaft position sensors are located at flywheel end of each cylinder head, just below valve cover. See Fig 1.
  2. Using ohmmeter, check resistance between electrical terminals on camshaft position sensor. Resistance should be 835-1400 ohms with sensor temperature of 14-122°F (-10-50°C) and 1060-1645 ohms with sensor temperature of 122-212°F (50-100°C). If resistance is within specification, go to next step. If resistance is not within specification, replace camshaft position sensor. See CAMSHAFT POSITION SENSOR under IGNITION SYSTEMS in REMOVAL, OVERHAUL & INSTALLATION - V6 & V8 article.
  3. Check for open and short in wiring harness and electrical connectors between camshaft position sensor and ECM. See WIRING DIAGRAMS article. ECM is located behind glove box, near passenger's side kick panel. See Figure. If wiring harness and electrical connectors are okay, go to next step. If wiring harness or electrical connector is defective, repair as necessary.
  4. Remove camshaft position sensor. See CAMSHAFT POSITION SENSOR under IGNITION SYSTEMS in REMOVAL, OVERHAUL & INSTALLATION - V6 & V8 article. Inspect camshaft position sensor and signal plate. If camshaft position sensor or signal plate is damaged, replace components as necessary. If camshaft position sensor and signal plate are okay, replace ECM.
    Fig 1: Locating Camshaft Position Sensor Or Variable Valve Timing Sensor
    G00011332Courtesy of © TOYOTA, LICENSE AGREEMENT TMS1002