A vision regulation device of a liquid for irrigation of a body cavity comprising - an inflow liquid pump arranged to feed an irrigation liquid from a container (10, 11) through a feed line into the body cavity; - a first control unit electrically connected to the inflow liquid pump; - a first optical sensor configured to detect blood cells and/or red blood cells and/or haemoglobin in the liquid coming out from the body cavity and to give signals to a second control unit indicating an actual amount of blood cells and/or red blood cells and/or haemoglobin in the liquid coming out from the body cavity, characterized in that the vision regulation device further comprises: - an outflow device electrically connected to said first control unit and arranged to drain the irrigation liquid from the body cavity through a tubing; - a second optical sensor configured to identify debris in the liquid coming out from the body cavity and to give signals to the second control unit indicating debris in the liquid coming out from the body cavity; - a debris identification module configured to cooperate with one or both of the first and second optical sensors (21, 22) and the second control unit to indicate debris in the liquid coming out from the body cavity, - a blood amount detector module configured to cooperate with one or both of the first and second optical sensors (21, 22) and the second control unit to indicate the actual amount of blood cells and/or red blood cells and/or haemoglobin in the liquid coming out from the body cavity, wherein the first control unit is configured to control the irrigation of the body cavity by controlling the operation of the inflow liquid pump and the operation of the outflow device in order to control the flow through and pressure in the body cavity so as to achieve an increase in flow at constant pressure or an increase in pressure at constant flow or an increase in both pressure and flow, depending on said detection of blood cells and/or red blood cells and/or haemoglobin and/or debris in the liquid coming out from the body cavity. - an inflow liquid pump arranged to feed an irrigation liquid from a container (10, 11) through a feed line into the body cavity; - a first control unit electrically connected to the inflow liquid pump; - a first optical sensor configured to detect blood cells and/or red blood cells and/or haemoglobin in the liquid coming out from the body cavity and to give signals to a second control unit indicating an actual amount of blood cells and/or red blood cells and/or haemoglobin in the liquid coming out from the body cavity, - an outflow device electrically connected to said first control unit and arranged to drain the irrigation liquid from the body cavity through a tubing; - a second optical sensor configured to identify debris in the liquid coming out from the body cavity and to give signals to the second control unit indicating debris in the liquid coming out from the body cavity; - a debris identification module configured to cooperate with one or both of the first and second optical sensors (21, 22) and the second control unit to indicate debris in the liquid coming out from the body cavity, - a blood amount detector module configured to cooperate with one or both of the first and second optical sensors (21, 22) and the second control unit to indicate the actual amount of blood cells and/or red blood cells and/or haemoglobin in the liquid coming out from the body cavity,