A P0340 Nissan code points to the Bank 1 camshaft position sensor circuit on the VQ35DE covered here. With the ignition off, start by checking the sensor connector for a loose lock, damaged terminals or chafed wires. Then check the harness for power, ground and signal continuity using the procedure for your vehicle. The code alone can’t tell you whether the sensor needs replacement.
Application: The original photographs show work on a 2006 Infiniti G35 with a VQ35DE. The terminal assignments and resistance test below are verified against the 2006 G35 Coupe factory manual, August 2006 revision. Confirm the matching manual for a sedan, another model year, a transverse-engine Nissan or a different engine. “3.5L” alone does not establish identical wiring, access or replacement compatibility.
Record all codes, pending codes and freeze-frame data before clearing anything. Note whether the problem occurs during cranking, when hot or after recent engine work. An extended crank or stall warrants diagnosis; a symptom list cannot identify the failed part. Do not continue driving a vehicle that stalls unpredictably.
What P0340 means—and which bank to check
For the documented G35 procedure, P0340 identifies Bank 1; P0345 identifies Bank 2. Use the matching engine-location drawing to identify the bank. Do not transfer a G35 “passenger-side” description to every Nissan installation or market.
The camshaft sensor supplies position information that the engine computer uses to identify cylinder phase. It is separate from the crankshaft sensor. If a crank-sensor code is also present, our VQ P0335 guide covers that related component; it is not a reason to replace both sensors automatically.
For the general code definition and broader applications, see our P0340 diagnostic overview. This page concentrates on the illustrated VQ35DE repair and the explicitly scoped G35 checks.
Identify the camshaft sensor before removal
Match the connector and sensor location to the factory drawing for your vehicle. The photos below document the original G35 work. They are not a complete intake-removal procedure or a universal location guide for Altima, Maxima, Xterra or every Nissan/Infiniti V6.

Access and preparation
Work with the ignition off and the engine cool. Inspect the connector lock and surrounding harness before pulling anything apart. Release the lock rather than pulling on the wires.
If removing intake components for access, follow the complete model-specific service procedure, including hose connections, seals, tightening order and any required relearn. The former instruction to remove the upper plenum by undoing the visible bolts was incomplete. Cover exposed intake openings immediately and account for every fastener before reassembly.






Check power, ground and signal wiring first
Use suitable probes and review our multimeter guide. Identify numbered terminals from the factory connector view. Looking into a sensor and looking into its mating harness connector are opposite views; a left-to-right rule can reverse the assignments.
Verified application: 2006 G35 Coupe CMP sensor circuit. The factory checks specify:
| Terminal | Check |
|---|---|
| 3 — supply | Connector disconnected, ignition on: battery voltage to ground |
| 1 — ground | Ignition off: continuity to ground; inspect for shorts to power |
| 2 — signal | With the ECM connector disconnected as directed: continuity to ECM 33 for Bank 1, or 14 for Bank 2; inspect for shorts |
These are harness checks, not instructions to apply external voltage to the sensor. Do not use resistance mode on a powered circuit. Follow the manual’s isolation instructions before disconnecting control modules or checking continuity.
A missing supply, poor ground or damaged signal wire must be repaired before a sensor can be judged fairly. Our voltage-drop guide explains why an unloaded continuity result alone cannot establish that a connection works under load. Use the appropriate procedure for the circuit being tested.
Verified camshaft sensor resistance check
For the same 2006 G35 Coupe, the component inspection specifies these sensor-terminal tests at 25°C (77°F), with the sensor disconnected and removed. Inspect its tip for damage first.
| Positive meter lead | Negative meter lead | Required resistance result |
|---|---|---|
| 1 | 2 | Neither 0 Ω nor infinity |
| 1 | 3 | Neither 0 Ω nor infinity |
| 2 | 3 | Neither 0 Ω nor infinity |
Keep the specified polarity; this is not an instruction to test every pair in both directions. An overload/open display is not a valid finite resistance reading. Check the meter range and probe contact before interpreting it.


A passing resistance check does not prove that the sensor produces a correct signal while cranking, running or hot. It also does not prove the harness is good. Treat this as one component check within the full diagnostic process, rather than a guaranteed fix for P0340.
What if the sensor and wiring pass?
The factory sequence continues to inspect the intake-cam signal plate for debris or damage and then intermittent faults. Do not jump straight from a stored code to timing-chain replacement. If mechanical timing is suspected, require model-specific timing verification and supporting diagnostic evidence.
Save the original fault information and compare before-and-after results. If the fault only appears hot or during a harness disturbance, reproduce that condition safely during diagnosis. A pulse signal may require an oscilloscope to evaluate properly; an averaged multimeter reading cannot show every missing or distorted pulse.
Replacement parts and confirmation
Confirm the replacement by VIN, engine, model year, bank and the current Nissan/Infiniti parts catalog. The part numbers formerly listed here are not being presented as a verified interchange. A sensor that plugs in is not automatically the right sensor.
Follow the matching removal and installation procedure, inspect the seal and connector, and use its specified fastener torque. After repair, clear codes only after recording the original data, run the prescribed confirmation test and recheck for pending or returning codes. Confirm that the original symptom is resolved.
Nissan P0340 FAQs
Does P0340 always mean the camshaft sensor is bad?
No. Diagnose the complete circuit and operating condition before replacing parts. A sensor replacement cannot repair an open wire or a loose terminal.
Can I use this connector test on every Nissan 3.5L?
No. The numerical terminal checks here are explicitly scoped to the 2006 G35 Coupe factory procedure. Confirm another vehicle’s wiring and specifications independently.
Should I replace both camshaft sensors?
Base replacement on the diagnosed fault and the vehicle’s applicable service information. Replacing both by default can add expense without addressing the cause.
Factory service references
Verified against the 2006 G35 Coupe Engine Control factory manual reproduction, August 2006 revision: P0340/P0345 diagnosis, EC-384–393; wiring checks, EC-390–391; component inspection, EC-393. The manual is also listed in NICOclub’s 2006 G35 Coupe service-manual collection. Hosting sites are independent of Nissan.



















What is the time and cost of changing PO340 on a 2003 PT cruiser?
Hi Albert! thanks for reading our Nissan camshaft guide.
If this is a DIY camshaft position sensor project, it should take no longer than 2-3 hours with the proper tools. For an experienced mechanic, the time to complete this camshaft sensor replacement is much shorter, and should check-in under an hour.
Thanks for reading and make sure to please follow us on Facebook!!
Good simple article, well described. Only I think you forgot the acceptable resistance parameter specifications for each pin combination. All you have is more than zero and less than infinity. That could be anything. What are the specifications?
At first it seems you’re talking about the sensor part itself, but then it shows the plug as what’s being tested. I want to to test the part not the plug. I don’t understand how testing the plug could determine the part being bad. Please explain. Thank you.
Hi Maggie, thanks for reading and commenting.
We test the harness first, so that we can determine that the ECU is receiving and sending what it needs to. If those are confirmed, you can almost guarantee that your hall effect sensor has died. Hope that helps!
it would be really nice if you can post the resistance values between terminals