This circuit detects light variations using two LDRs as sensors. Operational amplifiers and equivalent comparators can be used. The trigger point is set in the pot. The relay must have voltage according to the supply. This circuit is from the book Mechatronics, Robotics and Artificial Intelligence by Newton C. Braga, published in the United States.
1900702025_113200