I found and used the same resistor (i am not touching the arduino) and it still gives 1, but more rarely