Thanks APC. I did check the wires at the connector and they all looked fine, so I ordered and put in a new MOPAR cam sensor. Cleared the P0340 code and drove it around for a few days (130 miles or so) no problems. Thought I had this problem licked. But today the engine light come back on and when I pulled the codes it was P0340 again.
So, when it's daylight again I will check the wires, connector and new sensor, but I suspect those are all just fine. Possible a break somewhere in the harness, or I was thinking back to last spring when I had an injector code and it turned out to be goo in the connector at the ECU. Perhaps there is goo in more of those pins causing this problem...
Anyway, thought I ask again, any other possible causes of this problem? BTW the jeep runs fine when the code comes up, so if it is a bad connection somewhere I'm guessing it is fairly intermittent, otherwise seems like the engine would die on me. And I don't think it's related but this last tank of fuel gave me lousy mileage???
Thoughts anyone?