A game camera should be suitable for this purpose. It sounds stupid but that's how it is. They switch on when something moves. It doesn't matter whether it's an animal or a person. Then they film. Even in pitch darkness:
https://www.digitec.ch/search