Once you figure out the focal length of your pinhole -- this is the distance that will produce the sharpest result (see link above) -- make sure to set the bellows extension to that setting. (It's very easy to measure the distance between the pinhole and the film.) This, of course is for sharpness at infinity. To improve sharpness at closer distances, you'll have to increase the amount of extension accordingly (and possibly increase the exposure).