Confusion with NPN input wiring to a converter
Your diagram is good for NPN input, except that your external resistance must be too high because the converter needs to see less than 5V when the switch is on (and >7.5V when it is off).

A device with 0-5V output will need an interface to convert the signal. For example if your device has sufficient output current to power an opto-coupler you could do this:-







simulate this circuit &ndash; Schematic created using CircuitLab

The reason for the opto-coupler is to isolate the device's ground from the converter. If the device is powered by the converter (via the Y2 and Y0 terminals) then you could just use an NPN transistor with Base resistor (valued to provide an appropriate bias current) or perhaps a logic-level MOSFET.