I think you need another solution. The long wire will have capacitance of it's own.

But, the same setup may work using the ADC on your chip.

Capacitor as a sensor? What exactly are you doing?