That seems like a reasonable algorithm. I assume the subject would walk in front of the sensor to attract its attention, and the device would pursue that person until it reached the minimum range, or were outside the maximum range, or managed to get outside the scanning arc.