code: def get(cls, sensor_type):
          
          app = AndroidApplication.instance()
          f = app.create_future()
  
          def on_sensor(sid, mgr):
              if sid is None:
                  f.set_result(None)
              else:
                  f.set_result(Sensor(__id__=sid, manager=mgr, type=sensor_type))
  
          SensorManager.get().then(
              lambda sm: sm.getDefaultSensor(sensor_type).then(
                  lambda sid, sm=sm:on_sensor(sid, sm)))
  
          return f
docs: Shortcut that acquires the default Sensor of a given type. 
          
          Parameters
          ----------
              sensor_type: int
                  Type of sensor to get.
          
          Returns
          -------
              result: Future 
                  A future that resolves to an instance of the Sensor or None
                  if the sensor is not present or access is not allowed.