Optoelectronics are utilized in a wide range of devices across numerous sectors. They are used to detect or emit light. Historically, small transistors—small semiconductors constructed of graphene and other two-dimensional materials that regulate the flow of electrons and photons—have been the backbone of these devices.