Thanks for the fast reply. Sorry, but I left out that, ultimately, this will be connected to a pressure sensor and a microcontroller, which will control draining and filling the tank periodically as part of a more extensive process.
I started with the pressure sensor connected generally as...