I think Hall effect sensors are used in some commercial pedals.
http://arduino.cc/playground/Code/HallEffect