added sonar back to the build

reworked the analog stuff to only poll on demand