Here is a circuit diagram illustrating a light-activated switch utilizing the LM311 voltage comparator IC from National Semiconductors and a…