HI,
OK I have got to the controller. (see pics)
The controller measures 92mm L x 46mm W x 20mm D. The pedal sensor has 12 magnets, so should be ok.
There are 4 cables coming out of the controller, one is to the battery, one to the motor, one to the pedal sensor and one to the front of the bike...