Move the magnet and sensor up/down the fork blade/spoke until they are within the 5mm range.
Or place the magnet on the spoke and move the sensor on the fork blade...slide it towards or away from the magnet across the fork blade until it is within range then tighten the zip tie. You can make small adjustments as needed but NOT WHILE RIDING.