Measuring angle position of a pedal
if you need binary precision (true/false) hall effect sensors with some magnets would be great.
To get more precision you can try texas instruments inductance-to-digital converters. To use it you only need some metal with decreasing  thickness with distance.