code p0340 camshaft sensor on 1996 Lexus GS300

wheres the location of cam shaft sensor or just replace crankshaft sensor

Asked by for the 1996 Lexus GS300
Found online:
This indicates that a problem was detected in the camshaft position sensor circuit. Since it says circuit, that means the problem could lie in any part of the circuit - the sensor itself, the wiring, or the PCM. Don't just replace the CPS (camshaft position sensor) and think that will definitely fix it.