add log to analogRead - rework beep()