Question on gray wire from tps or ect to trans
However, you are lucky that I know truck harnesses from memory. That wire is the sensor ground for both the Engine Coolant Temp and Transmission Fluid Temp sensors.
You can find it in all wiring diagrams. It goes from PCM pin 41 (blue connector) to both sensors.
What is your specific problem?

