2002 Nissan Sentra with P0335 engine code?

shafe88

Distinguished
Jul 6, 2010
854
1
19,015
Anyone know the possible cause for P0335 on a 2002 Sentra? I replaced the crankshaft position sensor, and still getting engine light and P0335. Before replacing the crankshaft position sensor, I'd clear the code and it would comeback immediately upon starting the engine, after replacing the crankshaft position sensor, I still get P0335, but it takes a little bit of driving for it to appear. As a little test I swapped the old crankshaft sensor with the camshaft sensor(same exact part), after doing this, the engine light and P0335 appears immediately again, put the camshaft sensor back in and it goes back to taking a little bit of driving for the engine light to come one and P0335 to appear.