Kroger uses infrared sensors to track customers in their stores; an algorithm then decides how many checkout lines need to be open to reduce wait times.