Replacing the sensor with an optical one
http://www.helidriver.com/OpticalSensor.html
  all credits to Helidriver