So I am semi new to electronics but have been studying like crazy "aka googling". So here is my problem. I have a 24v encoder and would like to read the pwm with the Arduino. Obviously i cannot connect 24v to the Arduino so how would I go about this? Ssr? Voltage divider? or am I completely missing something? I would like to find a simply solution mustly because I will be using 24v as a standard moving forward I work on machinery and 24v is there standard. i just really would like to start interface with some machines.

Encoder info 400p-r Response frequency 0-20 khz 24vdc Max mechanical speed 5000 rpm

Thanks in advanced for all you help!!!