Why not add some correct bike luggage rather than a basket? There are some great zip bags that fasten to your frame available now, and this will keep everything protected from the elements. Also so you REALLY want to put a basket on your bike 😂 Take a look at the kit from Alpkit as an example https://alpkit.com/collections/panniers-and-mountable-drybags
Have attached Garmin Cycling computer in by bike. It accurately shows distance, heart rate and Elevation. Gives valuable data about my riding stats. Very useful for riders.