Dodge Repair: 1997 Dodge dakota 3.9 litre, camshaft position sensor, crankshaft position sensor


Question
QUESTION: When I start truck it runs great until warmed up once warmed up at low rpm it spits and sputters stalls runs like junk then one running for a long time it runs good again and acts up every now and then. the codes which come up are p0320, and p1391 .Plugs and wires are all good as is distributor cap and rotors. Thanks,
         Phil.

ANSWER: replace cam and crank sensor

---------- FOLLOW-UP ----------

QUESTION: Where is the crankshaft and camshaft sensor locatedon the 3.9 litre Dodge dakota

Answer
CAMSHAFT POSITION SENSOR
The camshaft position sensor is located in the distributor on all 2.5L/3.9L/5.2L engines Camshaft Position Sensor - Typical (3.9L/5.2L Shown)

REMOVAL
Distributor removal is not necessary to remove camshaft position sensor.

Remove air cleaner assembly.
Disconnect negative cable from battery.
Remove distributor cap from distributor (two screws)
Disconnect camshaft position sensor wiring harness from main engine wiring harness.
Remove distributor rotor from distributor shaft.
Lift the camshaft position sensor assembly from the distributor housing Camshaft Position Sensor - Typical (3.9L/5.2L Shown)
INSTALLATION
Install camshaft position sensor to distributor. Align sensor into notch on distributor housing.
Connect wiring harness.
Install rotor.
Install distributor cap. Tighten mounting screws.
Install air cleaner assembly.


CRANKSHAFT POSITION SENSOR - 3.9L/5.2L ENGINES
REMOVAL
The sensor is bolted to the top of the cylinder block near the rear of right cylinder head Crankshaft Position Sensor - 3.9L/5.2L Engines The sensor is accessed by removing the right front fender liner.

Remove right front tire and right front wheelhouse liner. Refer to Front Wheelhouse Liner in Group 23, Body.
Disconnect crankshaft position sensor pigtail harness from main wiring harness.
Remove two sensor (recessed hex head) mounting bolts Crankshaft Position Sensor - 3.9L/5.2L Engines
Remove sensor from engine.
INSTALLATION
Position crankshaft position sensor to engine.
Install mounting bolts and tighten to 8 N·m (70 in. lbs.) torque.
Connect main harness electrical connector to sensor.
Install right front tire and right front wheelhouse liner. Refer to Front Wheelhouse Liner in Group 23, Body.