code for sonar read and com from ti-launchpad