soil moisture sensor threshold high / low to activate 1 wire switch

Hi Brian

Is it possible to have a feature that will enable me to activate 1 wire switch

When the soil moisture sensor it’s a threshold high / low

In the near future. I would like to fit a small pump in a water butt
the water will then be pumped up to a small header tank which will feed my watering system

I know there are many systems available to do this, but I would like to incorporate into the weather station, so I can manage
experiment with some growing projects/management of water

Thanks

mick