Error 25 on the Bafang E170 / E180 / E181 means “Torque signal error.” Most likely cause: a loose or wet connection, or a sensor fault. Try this first: restart the system first.
Careful: on the Bafang E162 / E163, the torque sensor code is 26.
Torque sensors measure how hard you push on the pedals and match the motor's help to it. This code means that signal is missing or out of range. Check the connections, then leave the sensor to a shop.
Step-by-step checklist
Work from the top. Steps go from free and easy to shop jobs. Switch the bike off before touching any connector. Tick each step as you go. Your progress is saved on this device.
As an Amazon Associate I earn from qualifying purchases. Steps marked "affiliate link" link to Amazon.
When it's time for a shop: if you've worked through every step and the problem is still there, take the bike to an e-bike shop. Bring your notes on when it happens, plus the code.