Design and automated operation of a condensation-induced depressurization system