I agree with motor control about going off any gear on the transmission only I would probably go with a proximity switch because I'm more familiar with them and Ive seen them used as an encoder. The only thing is is that an encoder is very fragile while a prox is pretty durable. Having speed feedback back going to the controller would turn it into more like a flux vector drive. With a set up like that you could actually turn it into a home made cruise control