Detect presence of 230v - not measure

The relay sounds like the simplest way. Don't forget, read the contacts on the Arduino exactly the same way you'd read a pushbutton.

Using an optocoupler requires either a very large resistor and bridge rectifier, or a small transformer (to step down the voltage) and the optocoupler.