After his discovery, physicists soon discovered the photovoltaic effects of selenium, and in 1904 Einstein published a paper describing the photoelectric effect that later won him the Nobel prize in 1923.
As individual photons (light) from a dimly lit room or night scene enter the goggles, they strike a photoelectric plate, which uses the "photoelectric effect" to convert those photons into electrons, or electricity.