Arduino code for converting the outputs of four sensors attached to a bike on a cycle trainer to inputs for driving a computer game.