...into crank mechanism somehow.
If sensor on back wheel is removable and its possible to move it near chain ring, with magnet on chain ring I suspect system would work fine. A pulse is a pulse..
Dongle on back wheel simply reduces frequency of pulse to remove 15.5 mph limit. (It halves the pulses)