Updated analogRead and removed logging.