I have one basic question: did you clear the codes? If you have, and you still get the p0342 error, the camshaft position sensor is still at fault (maybe you bought one that differs than 96253544). Check wiring and make sure that middle wire is ground, wire closer to you is 5v ref and wire farther away from you is 12v. Measure voltage between terminals 1 and 2 (default 5v or close) and 3 and 2 (12 v default). Check terminals of the sensor and measure resistance. Between 1-2 and 3-2 should be indefinite. If not, go buy another sensor and choose Delphi.