what board/priter are you using.

I did notice that the mks robin board on my sapphire pro has a specific socket for the filament run out sensor (I didn't bother using it).
That just uses a standard endstop with the two wires.

I suppose it depends if you are using a filament sensor that registers movement or one that just checks to see if the switch is closed.