
Thanks to this relation, we understand why tanning occurs only from ultraviolet light, not from light from a lamp: ultraviolet photons are energetic enough to knock electrons out of skin molecules. Solar cells work precisely because of the photoelectric effect: photons knock out electrons, creating current. LEDs, conversely, emit photons when electrons jump between energy levels.