Is this a late model 3rd gen, like a '04.5 or '05 model? If so get under the truck and look up at the AC compressor in the engine compartment. There is a wiring harness running across the compressor. Most likely it's chaffing and shorting to the housing. This can cause issues with both the camshaft position sensor and the AC transducer. Repair the wiring and wrap the harness with plastic wire loom will solve the issue.