what input pin is it using?

Joes:
look at the 2 rear wheel speeds and pick the fastest travelling one and compare it to the speed of the propshaft and if it is going slower execute it into another piece of code to lock the diff up.

That seems unnecessarily complex. Unless your diff has broken you know that the propshaft speed is proportional to the average of the two wheel speeds so all you need to do is look at the ratio of the two wheel speeds.