Resistors needed for opto-isolated detector?

You could also look here: Mains voltage detector (neon bulb based for 230v door bell repeater)