An electronic component that contains a light source, usually in the form of an LED, and a light sensing device. When current flows, the LED emits light, which is detected by the light sensor. Opto-isolators are used to replace switches and relays. The big advantage of opto-isolators (also called opto-couplers) is that they have no electrical connection, helping cut down on ground loops.