Serial monitor not reading my long-distance sensor

I am using a 1.5mm² (3-core) , the voltage reads 4.98 V right on the sensor terminals. Before I connected the 20m cable, I hooked up the sensor directly to the analog pin on the controller directly but didn't get any reading on the serial monitor, then I connected a 10k resistor in parallel with the analog pin to ground and got readings on the serial monitor