Interfacing 24 volts PNP capacitive proximity sensor to arduino UNO

voltage divider.