Dark and Light Activated Relay This is the basic dark and light sensor which using photoresistor as sensing component. The transistor act like as a switch, when the “switch” in on condition then the relay will be activated.