The IP camera AiCam static at daytime, when into the night, AiCam start patrol over 180 degree. The AiCam will going patrol in the dark, stop when lights on. The light sensor detect the nighttime and use stepper motor to turn the AiCam.
Turn the AiCam by Stepper Motor
The code is here