So, I guess they are just opto-isolators. I do this any time I have to interface "real world" signals to expensive electronics, both for inputs (to the LED half) and for outputs (from the photo-transistor half). The use of a Darlington connection is usually required to actuate relay outputs, but...