I'm not quite sure how to use a photo-eye to raise and lower a boom to avoid running into an object as it passes over top and maintain a set distance away from the object. I would have to store this "map of the object" for forward and reverse passes over the object. I will be using vfd's and motors w/encoders. The photo-eye will be on the leading edge of the boom as it moves toward the object. I'm not looking for someone to write the code just suggestions and instructions that I could use to "map the object". Thanks for any help.