Hi,
The input speed sensor works in conjunction with the output speed sensor to determine the speed and proper gear ratio. However, if the input one is bad, you will likely experience odd shifts, hard shifts, or codes specific to gear ratio issues. Other than the P0502, were there any other codes? Do the other gauges on the instrument panel work? Does the speedo do anything?
Also, the internal one shouldn't have an effect on the speedometer. That is the one at the rear of the transfer case that you already replaced.
I attached the diagnostics for a P0502, which is specific to an output speed sensor. Take a look through them and let me know if you are comfortable performing them.
Here is a link that you may find helpful:
https://www.2carpros.com/articles/how-to-check-wiring
Let me know,
Joe
See pics below.
Images (Click to make bigger)
Monday, March 21st, 2022 AT 6:34 PM