Explain the functioning of an opto-isolator in electrical circuits.
An opto-isolator, also known as an optical isolator, functions by using a light source (LED) and a light sensor (phototransistor) to transmit an electrical signal between two isolated circuits. The isolation prevents high voltages from affecting the system receiving the signal.