ignition on 2002 Dodge Ram 1500

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
Sometimes my truck will not stay started after i turn over the ignition, what can the problem be?
(2) Answers
Could be many things, the best thing is to perform a diagnosis of the fuel management system. Check diagnostic codes, fuel mixture settings, vacuum leaks and fuel pressure to start with.
cam shaft sensor or crank shaft sensor, do code diagnostics testing yourself, its easy save money., mine had a code reading of p 340 which was the cam shaft position sensor