This circuit with passive components uses an LDR as a sensor. The potentiometer adjusts the sensitivity. The relay is a high voltage type for alternating current.