Long wires and float switch problem

I had used a plain 1 sq.mm wire, and i have used a internal pullup resistor.