I think you can do moisture sensing by measuring capacitance. Then you don't have to expose metals to the soil.