Throttle input from bicycle crank
How do I get throttle input from a bicycle crank? I am trying to create a human-powered airplane simulator with Microsoft Flight Simulator 9.
In other words, the pilot must pedal a stationary bicycle, a sensor measures the RPMs of the wheel, and those RPMs must be sent to Flight Simulator to adjust the throttle. If the pilot pedals faster and faster, the throttle will increase.
I don't know where to begin with the coding in FS9, nor how to get this to work. Does anyone have any suggestions?