I fitted an PZEM-051electrical power meter to monitor battery voltage and current output.
It uses an 8-bit microcontroller with a 24-bit ADC connected to a 100A/75mV current shunt.
It’s not waterproof so I intend to 3D print a suitable case with handlebar mounts.