Arduino digital input, 80Vdc

dc42:
D4 is redundant in this circuit, unless you accidentally short the input of the opto isolator to the output. It might be a useful protection device if you were not using optical isolation. It is also connected the wrong way round.

thanks, i thought this is what fungus ment to be able to give aditional protection in case there is a surge in the 80Vdc.
dont understand what he ment then.