Just replaced the camshaft sensor (for the second time) due to a p0340 code. Went to reset the code with my obdii reader and am still getting the p0340 camshaft circuit error. I replaced the pigtail (3 wire) did 1 wire at a time to make sure I did them in the correct order , I replaced the spark plugs also. What am I doing wrong here ? Can the variable timing solenoid be defective too ? Any suggestions ?