Brief description of the gear change sensor here:
http://newwheel.net/electric-bike-basics/electric-bicycle-motor-systems/impulse-20-electric-bike-motor-system
http://newwheel.net/electric-bike-basics/electric-bicycle-motor-systems/impulse-20-electric-bike-motor-system