An LED facing a photodiode in a light-tight enclosure is commonly known as a/an:

Related Questions