These are electronic devices that emit or detect light. Examples include LEDs, solar cells, and photodiodes.