Also built a bike computer for my daughter using an esp32, reed switch and magnet.
As we had recently watched Back To The Future, when she reached 8.8 mph it would play a brief snippet of appropriate music!