docs: def main():
      '''Main function to run the sensor with passed arguments'''
      
      trig, echo, speed, samples = get_args()
      print('trig pin = gpio {}'.format(trig))
      print('echo pin = gpio {}'.format(echo))
      print('speed = {}'.format(speed))
      print('samples = {}'.format(samples))
      print('')
      
      value = sensor.Measurement(trig, echo)
      raw_distance = value.raw_distance(sample_size=samples, sample_wait=speed)
  
      imperial_distance = value.distance_imperial(raw_distance)
      metric_distance = value.distance_metric(raw_distance)
      print('The imperial distance is {} inches.'.format(imperial_distance))
      print('The metric distance is {} centimetres.'.format(metric_distance))