get to know how hyperfocal distance works then you will be able to choose settings which get your tree in focus every time, so long as you know roughly how far away from the camera the tree is.
If you have an iPhone or Android phone you can get free hyperfocal distance or depth of field calculators, just put in the lens, aperture & distance & it will tell you how far into the scene to focus to get everything you need sharp.
There's an explanation of hyperfocal distance
here