End Stop Question

Hello,

I have three proximity switches from Koyo (bought on Misumi Website) and found out that they take an input voltage of 10-30V. I was wondering if there was any way I can hook these up to the smoothieboard since the voltage provided by the switch pins is 3.3V. I am using a 24V PSU to power the stepper motors. Could I wire my proximity switch power to the 24V input and connect the ground and signal like they would normally be connected?

The model number of my component is APS4-12M-E-D and if searched on the Misumi website, their code is EMX4-F12.

Thanks!

Imported from wikidot

Why not just use the inductive sensors to power the coil of a small 24vdc relay and use the n/o contact of the relay to switch the smoothieboard end stop limit. 3 extra parts I know but safer given the input go directly to the cpu what will be toast if it gets 24v.