Thanks for your suggestion. The bike is reading the speed from the front hub, I've opened it up and there is one magnet on the motor cover and a pick up on the inner hub. The bike was working normally and just stopped working, the mode controller also stopped working. I re-calibrated the torque...