P0340 is Cam Position Sensor A-bank 1 malfunction.
Replace your Cam Position Sensor it is located on the front engine cover between the water pump pulley and crank shaft pulley at the 10 O'clock position if you crawled under the truck head first.
As for the U2B65 I have no clue what that is.