ok ,you need to do a fuel injector test(balance test)with a fuel pressure gauge hooked up ,you need to ground each injector to see if they all drop the same on the gauge.one at a time and with turnning the key on each time you check each injector ,it could be a bad injector ...esp.the cylinder that had the wet plug ...guy ...a good scanner would be a good thing to use for this test .also here is a flow chart for checking the cam sensor and pertaining circuits
CIRCUIT DESCRIPTION The Camshaft Position (CMP) sensor is used to indicate camshaft position so that the Vehicle Control Module-A (VCM-A) can determine which cylinder is misfiring when misfire is present. It is also used to check for a properly installed distributor. DTC P0340 is a type "B" DTC.DTC P0340 WILL SET WHEN Engine running cam sensor reference pulse is not seen once every 6 cylinders. (incorrect ratio of cam to crank pulse).ACTION TAKEN (VCM-A WILL DEFAULT TO) The VCM-A will turn "ON" the Malfunction Indicator Lamp (MIL) (Service Engine Soon) after two consecutive driving cycles with the fault active.DTC PO34O WILL CLEAR WHEN The VCM-A will turn the MIL "OFF" after three consecutive trips without a fault condition present. A history DTC will be cleared if no fault conditions have been detected for forty warm-up cycles [coolant temperature has risen 22°C (40°F) from start-up coolant temperature and engine coolant temperature exceeds 71°C (160°F) that same ignition cycle] or the Tech 1 clearing feature has been used.DTC CHART TEST DESCRIPTION Number(s) below refer to circled number(s) on the diagnostic chart.
DIAGNOSTIC AIDS An intermittent problem may be caused by a poor connection, rubbed through wire insulation, or a wire that is broken inside the insulation.Any circuitry, that is suspected as causing the intermittent complaint, should be thoroughly checked for backed out terminals, improper mating, broken locks, improperly formed or damaged terminals, poor terminal to wiring connections or physical damage to the wiring hamess.