Mechanical 5V Relay with High Voltage Trigger
BlockquoteCan the circuit below be altered to close the relay at 5V instead of low voltage signal?

Yes.  Eliminate R4, U2, and the IN2 LED, and use the IN2 signal to drive R3 directly.