Corrected byte to int

The original code as a bug, analogRead returns and int. This change
corrects the variable mismatch.