code: def parse_reading(val: str) -> Optional[float]:
      
      try:
          return float(val)
      except ValueError:
          logging.warning('Reading of "%s" is not a number', val)
          return None
docs: Convert reading value to float (if possible)