A couple of if statements in loop should do it, based on whatever the depth sensor is telling you. Post the code you have so far.
A couple of if statements in loop should do it, based on whatever the depth sensor is telling you. Post the code you have so far.