I've not had the problem itself, but I know electronics, so I do believe that there are two sensory, and the timing relationship between them decides if the pedal movement is for forwards or not.
I would imagine that the distance between the sensors is important,but only move one say 2.5 mm, in...