Corrected byte to int

The original code had a bug. analogRead returns an int, not a byte. This
change corrects the variable mismatch.