Just use a purpose-built trail cam. Sub-second response, optics optimised for trail conditions, weatherproof, robust, durable, long battery life, designed to be secured to trees.
There's a bit of engineering in a reliable trail cam. (Don't buy no-name Chinese.)
There's a bit of engineering in a reliable trail cam. (Don't buy no-name Chinese.)