Wild guess, the switch output is an open collector and your pull up resistor isn't connecting.