JS to uper callback analogRead