Added a SensorManager to the onCreate method.