code: def _check_sensor_platform_consistency(self, sensor):
          
          ref_sensor = SENSORS.get(self.platform, None)
          if ref_sensor and not sensor == ref_sensor:
              logger.error('Sensor-Platform mismatch: {} is not a payload '
                           'of {}. Did you choose the correct reader?'
                           .format(sensor, self.platform))
docs: Make sure sensor and platform are consistent
  
          Args:
              sensor (str) : Sensor name from YAML dataset definition
  
          Raises:
              ValueError if they don't match