You may also hack this product by Xiaomi.
https://www.aliexpress.com/item/Xiaomi-Mi-Flora-Monitor-Smar...
There are many wifi enabled switches to enable the water pump. Try out the ESP8266 and/or ESP32 in your next project.
Your mind will blown with the possibilities :D
Also, you may loose the soil and go for hydroponics, that would make this really from the future.