Voltage Detector

Why not replace led with optocoupler ?