A sensor is a task that waits for something to be true, then succeeds so the tasks after it can run. FileSensor waits for a file (a glob pattern works too); its filepath is a template, so /data/scans/york/{{ ds }}.csv waits for the run's own file.
Every sensor pokes (checks) every poke_interval seconds until the condition holds or timeout seconds have passed since it started. Then it fails with AirflowSensorTimeout, which is never retried. The default timeout is seven days, so always set one that matches how late the data may reasonably be.
With soft_fail=True a timeout marks the sensor skipped instead of failed: the tasks after it are skipped and the run stays green. Use it when a missing file is normal (no deliveries on a holiday), not when it is an incident.
Check every five minutes for up to an hour, then count the parcels.