You could use a hvac drain pan float switch mounted in the tank to initiate the flicker machine that you are engineering.