So basically I was following a tutorial and it uses a pull-off resistor, and it makes sense to me why he used it, so I started building my circuit and programming it, it works fine, but when I remove the 10ku resistor the circuits continue and the arduino can read values, so resistor makes no difference, but why?
One possible explanation: Is that the sensor always allow current to flow in it, So the pin 2 always send some voltage to the arduino, then he can read and dont go crazy.