The sensors corrode due to oxidation caused by the DC current. It's a pretty simple design change to alternate the current flow through the sensor and prevent that oxidation by toggling the pins.
Exactly this. I created a soil moisture setup with cheap sensors that worked consistently for several months. The key was to send the current flow one direction for a few seconds, then reverse high/low on the pins for the exact same time. This prevented excessive oxidation.