Stay off till some point. Answered....thanks guys

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.