Ex vivo lungs are useful for a variety of experiments to collect physiological data while excluding the confounding variables of in vivo experiments. Commercial setups are often expensive and limited in the types of data they can collect. We describe a method for building a fully modular setup, adaptable for various study designs.