K2543 with light barrier

Hello,
I want to replace the contact breaker with a light barrier (CNY 37). How can I solve it. What are the input-parameters of pin 2? Current, Voltage?

best regards!
jacke_dau