Variation output hall effect sensor
Subtract 2.5 volts and apply a gain factor of two. This can be done quite easily with an opamp but it's likely you'll need a negative supply to reach precisely 0 volts and a positive supply greater than 5 volts to reach an output of 5 volts.