Optoelectronic devices and components are p-n junction those electronic devices that operate on both light and electrical currents.