Easy question on 904.

I know these tranny's are not electronic so what does the sensor that plugs into the engine harness on my 904 do? And how do I know if it's working?