The infrared sensor in seek mode returns an array, however, in the code it is treated as a single value.