Replacing my compressor because of a pin hole link in the tank. Many on here state using an auto drain in the tank. My Google searches have provided sketchy results, how does it work and where do I get one?

Thanks.