Filament sensor help

I am currently running octoprint on my rspi 3b+. I am trying to get the filiment sensor working with a roller switch. I have it connected to pin 7 and ground. I have the plug filiment sensor ng in installed and configured for pin 7 but nothing is working. I have tried other pins to no luck. I have a atx power supply control running of pin 13 and working perfect