inductive proximity sensor 24 volt to arduino

Thank you sir,
I was thinking of optocoupler or regulTor or even amplifier, but I’ll go with the voltage divider!