Moved the sensor manager to the main activity so that it can be un registered and reregistered on pause and resume although that has not been done yet. Also un cast the adc value so the paddle moves much more smoothly.