I use either regular outlet timer set to come when needed or the best option IMO an automatic pump. I used the little giant one recommended by cocoforcannabis for about a 2 years till it quit came home to tent tray full of waste water. I now am using a hvac condensation pump
Aquastrong 1/30 HP 95 GPH HAVC...
Amazon product ASIN B0CPHX42RC
Little Giant 1-ABS 115-Volt,...
Amazon product ASIN B002XFFANC
This is the timers I use if it’s not automatic pump
BN-LINK 7 Day Heavy Duty Digital...
Amazon product ASIN B073DGGHD7