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.
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.