update motion detect example