In which of the following situations is photoelectric effect employed? I. Automatic devices for switching…