I suspect too high voltage drop in the 20 meters of wire. What gage of wire are you using? When the "5V" power gets to the CF Sensor, is it still 5V?
What do you mean "so I connected a 10k resistor in parallel with the analog output"? Why would you do that?