You need to use the map() function where things are actually happening, not in the initialization of the variables.
And you don't seem to use output0Value anywhere ! ? !
This should work, if placed at the right spot (assuming the hardware is wired up correctly):
sensor0Value = map(analogRead(sensor0Pin), 0, 1023, 0, 127);