Hi,
measure the voltage across R1 with the buffer amp output high, do the calculation to find the current thru R1.
Most optoisolators have approx. unit current gain across the opto boundary. Thus if you have 1mA input thru the photodiode then the
phototransitor will have approx. 1mA in emitter/collector circuit. Most PCB relays will need 20mA for reliable operation,
ie you should aim for 20mA in the photodiode.
Another possibility to increase the sensitivity of the phototransistor is to bias the base. It is for this reason that the base is
pinned out. Use a resistive voltage divider to apply 0.55-0.58V or so to the base. If you bias to high or circuit conditions change,
temperature for instance, you risk having the phototransistor conduct WITHOUT the photodiode conducting!
Craig