Light intensity and motion detectors