This basic circuit is from an old documentation. The relay must be 50 mA maximum and must have a parallel diode so that the pulses generated in the switching do not affect circuit stability. The LDR can be of any type.