voltage sensor unstable in my code

That's right, something very strange is disturbing the reading of the sensor, I also tested other ports, other wires, another sensor and nothing.