Your dSLR had 3 different autofocus modes. Using the right one will give you the best chance at getting a sharply in focus image.
For more helpful information check out How to Get Off the Green Auto Setting on Amazon. It is available in print and Kindle format.