P0340 and P1391 codes
Thanks so much for all the help.Changed both sensors as advised,check engine light is gone after a trip around the block.maybe I can offer help as well.here are some pics of the sensor locations on the 4.7 dodge ram.
Cam Position Sensor

Laying under the truck looking up at passenger side of engine (look at sway bar and past it you will see the sensor.
Crank sensor

Laying under passenger side front door looking up at the back of the block and were the Transmission attach (bellhousing)
Hope these help everyone else too.
Cam Position Sensor

Laying under the truck looking up at passenger side of engine (look at sway bar and past it you will see the sensor.
Crank sensor

Laying under passenger side front door looking up at the back of the block and were the Transmission attach (bellhousing)
Hope these help everyone else too.





