how do i map a potentiometer from 0 - 1023 to 0 - 127 problems

madworm is right, you aren't using map() properly, but you don't need to use map() just to divide by eight.

This

sensor0Value = analogRead(sensor0Pin) / 8;

will work just as well.