1999 dodge ram 2500 5.9 360

Check the wires and connector to the sensor? Also check the body grounds are intact and not full of green fuzzy crap.