Potentiometer as voltage divider

Hi.Thanks for all your answers.I am trying to connect a photoelectric sensor Page Not Found | Pepperl+Fuchs to Arduino uno r3 to get an objects counter.So when Arduino reads a High pulse then up counter ,but the voltage output from the sensor is 12V and the A0 of Arduino equal or less than 5V.