Check out example codes for "how to check wether an object has stopped moving unity". It will help you in understanding the concepts better.

Code Example 1

void Update()
{
	// "transform.hasChanged" is an official unity bool that checks whether all the tranform values have stopped (Position,Rotation,Scale)
	if (transform.hasChanged)
	{
		Debug.Log("The transform has changed!");
		transform.hasChanged = false;
	}
}

Code Example 2

Rigidbody2D rb;

void Start()
{
    rb = GetComponent<Rgidbody2D>();
	IsStagnant(); 
}

void IsStagnant()
{
	if (Rigidbody2D.Isleeping())
    {
    	Debug.Log("Object is not moving")
    }
}

Learn ReactJs, React Native from akashmittal.com