OK try it on a pin other than 13, this is because pin 13 has a resistor and LED connected to it and might be too much for the internal pull up resistor.
OK try it on a pin other than 13, this is because pin 13 has a resistor and LED connected to it and might be too much for the internal pull up resistor.