RPM's jumping
The crankshaft position sensor will pop a code and there is a few things that can tell you its bad without a code, if you mash on the gas and the truck starts to buck and you hear a popping noise under the hood its the sensor also what I am going through till I replace mine is a rough idle as well!!




