what input pin is it using?

If it's a Hall switch then you use it like a manual switch/button.