I did not like how the original Bafang sensor is mounted so I used a Bosch rotor magnet and designed a different mount.
It is quite specific to my bike frame but may be a good starting point for similar projects.
One zip tie is used to secure the adaptor against the frame.
The author marked this model as their own original creation.