Solution

Loitering Detection

This function will activate when subject is detecting loitering within targeting area. This function can detect whether the subject is in motion or stay still.