As @MisterBill2 said, If your capacitor is made of soil, then it's going to have a lot of leakage resistance. That will totally screw up any circuit based on resistance that is designed to measure the capacitance. The only hope you could have is to make the capacitance part of a resonant circuit with an inductor and measure its resonant frequency. (But if there is too much parallel resistance, the Q might be too low for it to oscillate)