made changes to accommodate updating pb_conn.
clean implementation of reading events from the SensorManager.