A photo detector is a device detects light and darkness.such a device is often integrated as a component of a system that automatically performs a task of switch off and on of all electric devices weather you there or not.they form a vital component of security,automated lighting control,home control,energy efficiency and other useful equipment avoid switching off and on security lights and forgetting them off or on