if you are good with microswitches, you can make a gear based boost controller with all old school DIY stuff that we've been using for years.
or you can use a frequency to voltage converter to take the signal from the speed sensor and convert it to a voltage signal, and then use 4 op amps set up as comparators (voltage based switch) to determine what gear you are in.
Brian