Try this for starters...
This setup works perfectly. I created it to turn on my shed light as I approach and put away my motorcycle. You can set it up to turn on a camera that starts recording as it's powered on. In the comments, I describe how to adjust the time it remains on. Very simple and rudimentary.
Microwave motion detection sketch for Arduino & ESP8266
HW-MSO3 source, it is NOT effected by light or temperature: HW-MS03 on AliExpress