When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
The wires go up about 12" to the wiring harness behind the engine, then over to the pcm. The pcm is located on the passenger side next to the firewall. They go to the third connector from the top. There should be room before then to splice in some new wire. The wire colors are pink/yellow, blue/green, brown/blue.
When looking into the connector end with the clip release on the top, the right wire is the pink/yellow, the middle is blue/green, and the left is brown/blue.
Unfortunately I don't have the info. It was just by chance I had a 2006 engine sitting on the ground beside me when I saw your post. I'll make a call and see if I can get someone to poke around the wiring harness and figure it out. I think it might be a ground wire though.
There were able to get some info for me. There are two pink/yellow wires, both are 5v+ for the sensor. The two blue/green are sensor ground, and the last wire is the signal. As for which wire is for which sensor, I don't know.
The consensus on the forums seem to indicate that only Mopar sensors work. I, along with others, have run into issues with new sensors that just don't work. The only known fix was an oem sensor. I will be going back out to work on the truck, so I can get an exact pinout for you to double check your work.