Optocouplers are used to combine different signal levels or to isolate one signal from another. They provide an optoelectronic signal transfer between input and output, so they never wear out.