I am working on a project wherein I have a camera and I need to find the distance between the lens and the object to produce the sharpest image. The camera has the provision to adjust the position of the lens. I have to determine the distance from the lens and the object which can produce the sharpest image. Can anyone please provide me an idea on how this can be achieved?