Load the code into an Arduino and try it out on some objects whose
distance you know. Then try it on objects which are much further and nearer.
Finally, see what happens when you try to obstruct its “vision” with
some soft surface like cloth.