That still gives no clues about the actual sensor and how it operates. From the pictures it looks as though it is just two resistors so the output is analog, a proportion of the input voltage. A simple resistive divider is fine if you are trying to measure an analog quantity but expecting one to detect 24V is present will not give precise results. Whether it shows digital high or low depends upon the accuracy of the resistors and the voltage threshold at which the digital input changes state. For example, if it did work to confirm 24V was present, it might also say it was present when only 23V or 22V, maybe less, was actually there.
Brian.