Corrected byte to int.

The original bug has a bug. analogRead returns an int. This change
corrects the variable mismatch.