Height sensing used to verify gear assembly versions during production