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.