Device for regulating the vision of a liquid for the irrigation of a body cavity (1) comprising - an inlet flow liquid pump (2) arranged to feed an irrigation liquid from a container (10, 11) through a feeding line (13) inside the body cavity (1); - a first control unit (4) electrically connected to the inlet flow liquid pump (2); - a first optical sensor (21) configured to detect blood cells and / or red blood cells and / or hemoglobin in the liquid leaving the body cavity (1) and to transmit signals to a second control unit (24) indicating a actual amount of blood cells and / or red blood cells and / or hemoglobin in the liquid leaving the body cavity (1), characterized in that the vision regulating device further comprises: - an electrically connected outlet flow device (3) to said first control unit (4) and arranged to drain the irrigation fluid from the body cavity (1) through a tube (16); - a second optical sensor (22) configured to identify residues in the liquid leaving the body cavity (1) and to transmit signals to the second control unit (24) that indicates residues in the liquid leaving the body cavity ( one); - a waste identification module (25) configured to cooperate with one or both of the first and second optical sensors (21, 22) and the second control unit (24) to indicate residues in the liquid leaving the body cavity (1), - a blood quantity detector module (26) configured to cooperate with one or both of the first and second optical sensors (21, 22) and the second control unit (24) to indicate the actual amount of cells blood and / or red blood cells and / or hemoglobin in the liquid leaving the body cavity (1), in which the first control unit (4) is configured to control the irrigation of the body cavity (1) by controlling the functioning of the inlet flow liquid pump (2) and the operation of the outflow device (3) in order to control the flow through and the pressure in the body cavity (1) to achieve an increase in flow to a constant pressure or