Examples of soil moisture sensors:Modbus version:
https://www.alphaomega-electronics.com/en/home/2790-hd39102-probe-for-soil-volumetric-water-content-measurement-3-electrodes.html
4-20mA version:
https://www.aliexpress.com/item/32569972778.html