Here's my experience with the P0340 code, I apologize if the post is long, but I hope it'll help anyone having the issue.
First I replaced my OEM Wonky PCM with a Wranglerfix unit, it restored communication with my code scanner and eliminated all the false O2 sensor, and coolant temp codes...