According to one embodiment, a method includes positioning a portion of a trocar into a patient cavity and inserting a surgical instrument into the trocar. The method also includes measuring, by a pressure sensor disposed within the trocar, a pressure within the trocar. The measured pressure is indicative of a pressure in the patient cavity. The method also includes supplying, based at least in part on the measured pressure, an insufflation gas to the patient cavity by providing the insufflation gas through the trocar.