These two parts should do what you need.
smx.fzpz (9.1 KB)
watermark-soil-moisture-sensor.fzpz (4.8 KB)
Peter