Corrected byte to int

The original code has a bug. AnalogRead returns an int.