A device (1) for irrigation and/or insufflation during endoscopic surgery/procedures in a body cavity (3), comprising a first fluid pump device (21) in fluid connection with the body cavity (3) via a fluid line (10), wherein the first fluid pump device (21) is adapted to deliver a fluid to the body cavity (3) a second fluid pump device (18) in fluid connection with the body cavity (3) connected via a fluid line (16), wherein the second fluid pump device (18) is adapted to move a fluid from the body cavity (3), a control unit (19) connected to the first fluid pump device (21) and/or the second fluid pump device (18), a blood pressure measuring device (20), connected to the control unit (19), wherein the blood pressure measuring device (20) is adapted to measure a systemic blood pressure, wherein the control unit (19) is adapted to derive a control signal based on a signal from the blood pressure measuring device (20), wherein the control unit (19) is further adapted to send the control signal to the first fluid pump device (21) and/or the second fluid pump device (18), wherein the control signal is derived by processing the signal from the blood pressure measuring device (20) by using a correlation factor stored in the device (1) wherein the correlation factor is dependent on the relationship between a blood pressure measurement signal, and a perfusion pressure of the body cavity (3), wherein the first fluid pump device (21) and/or the second fluid pump device (18) is adapted to control the pressure in the body cavity (3) based on said control signal received from the control unit (19).Un dispositivo (1) para irrigación y/o insuflación durante cirugías/procedimientos endoscópicos en una cavidad corporal (3), que comprende un primer dispositivo de bombeo de fluido (21) en conexión de fluido con la cavidad corporal (3) por medio de una línea de fluido (10), en donde el primer dispositivo de bombeo de fluido (21) está adaptado para entregar un fluido a la cavidad corpor