A great article on the subject of hyperfocal distance.
https://www.nikonians.org/reviews/dof-and-hyperfocal-distance-tables-and-calculator/p/all
The basic idea is that if you focus your camera at the hyperfocal distance (H), the depth of field is from H/2 to infinity.