Excellent! The easiest example of a divider would be to use a 19Kohm in series with a 5Kohm resistor. One end of the 19K to the 24V signal, the other end to the 5K, the opposite end of the 5K to ground. Wire the ends of the 5K to the DIO inputs (input line and ground). This arrangement only draws 0.001A from the 24V signal.
~~~~~~~~~~~~~~~~~~~~~~~~~~ "It’s the questions that drive us.” ~~~~~~~~~~~~~~~~~~~~~~~~~~