You need an opto coupler with one emitter and two receivers. You then use one of the receivers to output to your circuit and the other along with an op amp to control the brightness of your emitter along with your control signal.
Well the HCNR200 is just one type of the the opto Isolator I talked about in Reply #1.
Unless you have it on a board that has the extra circuitry, you still need to surround it with other circuitry. From the HCNR200 data sheet here is a typical circuit that uses that isolator.
Note that LED, PD1 and PD2 are the three parts of the HCNR200, all the other bits you have to build yourself. Also note in this schematic you need what is called a split supply with a +15V, Ground and -15V output.
Since I'm fairly novice with electronics, I think I don't want to over complicate things with adding so much circuitry. This is meant for the DIY'er, and I can use a small rotary selector or a jumper slot to select a suited resistor for each voltage range.
I appreciate the effort you put into guiding me, but I want to keep it as simple as I can.
Put a 5.6v zener diode from Q1 base to ground, this will limit the voltage on Q1 emitter to about 5V whatever the input voltage (within reason). With 24V the current in the zener will be ~19v/10k or 1.9mA so you don't need a big zener. No need to mess around with opto isolators. A 5V input won't see the zener so circuit operation will be unaffected.