Automatic tank dewaterer for workshop compressor

Hello, we have a self-built piston compressor at our house, which can be switched on via a relay circuit either from the basement or from the garage. This then feeds the compressed air network. Unfortunately, the compressor is located in a place where you can not get so easily, so regular drainage of the tank is difficult. Therefore, I want to install a valve on the tank, which does this automatically. However, I do not know if there is such a thing, bz w. as such means. I imagine that the valve at the bottom of the tank opens very briefly every time the compressor is switched on and so the condensate comes out. Of course, I am also very grateful for other suggestions for solving my problem.