An arrangement for detecting a delivery volume and/or a delivery flow, with - a discontinuously operating pump, - at least one outlet line and one inlet line (2, 2-1, 2-2) and - a passive valve (5, 5-1, 5-2), which is arranged in the outlet line or the inlet line (2, 2-1, 2-2) and which has a valve seat (15-1, 15-2) and a valve head (16-1, 16-2), the valve (5, 5-1, 5-2) being closed in a first position of the valve head (16-1, 16-2) and the valve (5, 5-1, 5-2) being open in a second position of the valve head (16-1, 16-2), - a sensor (8, 8-1, 8-2), by means of which values can be detected which indicate whether the valve head (16-1, 16-2) is in the first or the second position, and - a computing unit, which is coupled to the sensor (8, 8-1, 8-2) and by means of which the volume delivered by the pump and/or the delivery flow of the pump can be calculated on the basis of the detected values of the sensor (8, 8-1, 8-2). - where the pump operates cyclically, a defined fluid volume is delivered by the pump during each cycle, the valve head (16-1, 16-2) is in the first position between two cycles and it can be detected by means of the computing unit and the sensor (8, 8-1, 8-2) how frequently the valve head (16-1, 16-2) changes from the first position to the second, and the volume delivered by the pump can be calculated on the basis of the number of changes from the first position to the second, and with - a test device for detecting a delivery malfunction which is coupled to the pump and to the sensor (8, 8-1, 8-2) and by way of which it is possible to test whether the valve head (16-1, 16-2) has changed from the first position to the second position within a defined time interval after the end of a cycle, wherein - the computing unit comprises a memory in which there is stored an initial volume in a container connected to the inlet (2, 2-1, 2-2), and - the computing unit is set up to calculate a remaining volume in the container and - the test device is set up to test whether the delivery malfunction is a malfunction of the pump or an empty state of the container. - a discontinuously operating pump, - at least one outlet line and one inlet line (2, 2-1, 2-2) and - a passive valve (5, 5-1, 5-2), which is arranged in the outlet line or the inlet line (2, 2-1, 2-2) and which has a valve seat (15-1, 15-2) and a valve head (16-1, 16-2), the valve (5, 5-1, 5-2) being closed in a first position of the valve head (16-1, 16-2) and the valve (5, 5-1, 5-2) being open in a second position of the valve head (16-1, 16-2), - a sensor (8, 8-1, 8-2), by means of which values can be detected which indicate whether the valve head (16-1, 16-2) is in the first or the second position, and - a computing unit, which is coupled to the sensor (8, 8-1, 8-2) and by means of which the volume delivered by the pump and/or the delivery flow of the pump can be calculated on the basis of the detected values of the sensor (8, 8-1, 8-2). - where the pump operates cyclically, a defined fluid volume is delivered by the pump during each cycle, the valve head (16-1, 16-2) is in the first position between two cycles and it can be detected by means of the computing unit and the sensor (8, 8-1, 8-2) how frequently the valve head (16-1, 16-2) changes from the first position to the second, and the volume delivered by the pump can be calculated on the basis of the number of changes from the first position to the second, and with - a test device for detecting a delivery malfunction which is coupled to the pump and to the sensor (8, 8-1, 8-2) and by way of which it is possible to test whether the valve head (16-1, 16-2) has changed from the first position to the second position within a defined time interval after the end of a cycle, - the computing unit comprises a memory in which there is stored an initial volume in a container connected to the inlet (2, 2-1, 2-2), and - the computing unit is set up to calculate a remaining volume in the container and - the test device is set up to test whether the delivery malfunction is a malfunction of the pump or an empty state of the container.