The correct option is D All of the above
In case of first three options, photocell is used. As any object/person blocks the light incident on the cathode of the photocell, the photoelectric current becomes zero. This principle is used in detection of persons/objects.
Hence, (D) is the correct answer.