To measure distance between user and object