Fixed bug in conversion from analogRead() output