Automatic sanitary fitting with monitored flushing function, having - a housing which has at least one water-inlet opening, to which a water-inlet line is connectible, and a water-outlet opening, wherein a water-throughflow path runs between the at least one water-inlet opening and the water-outlet opening, - an automatically operable water shut-off valve for selectively shutting off and opening the water-throughflow path through the housing, - a proximity sensor for detecting an object approaching the region below the water-outlet opening and - an evaluation and control unit connected to the proximity sensor and to the water shut-off valve, which unit actuates the water shut-off valve to open the water-throughflow path on detection of an object located in the region of the water-outlet opening and which actuates the water shut-off valve to shut off the water-throughflow path again on subsequent non-detection of the object and optionally after a fixed or adjustable period of time has elapsed, - the water shut-off valve being actuatable by the evaluation and control unit to open the water-throughflow path for the purpose of flushing thereof and/or flushing of the water-inlet line for the duration of an optionally adjustable water-throughflow period, characterised in that - while the water-throughflow path is open for the purpose of flushing thereof and/or flushing of the water-inlet line, the evaluation and control unit actuates the water shut-off valve to shut off the water-throughflow path when, during the water-throughflow period, the proximity sensor detects an object in the region below the water-outlet opening of the housing, the detection range of the proximity sensor being alterable by the evaluation and control unit, and the detection range of the proximity sensor is greater during the flushing than for the automatic opening of the water-throughflow path when the proximity sensor detects the approach of an object while the water-throughflow path is shut off. - a housing which has at least one water-inlet opening, to which a water-inlet line is connectible, and a water-outlet opening, wherein a water-throughflow path runs between the at least one water-inlet opening and the water-outlet opening, - an automatically operable water shut-off valve for selectively shutting off and opening the water-throughflow path through the housing, - a proximity sensor for detecting an object approaching the region below the water-outlet opening and - an evaluation and control unit connected to the proximity sensor and to the water shut-off valve, which unit actuates the water shut-off valve to open the water-throughflow path on detection of an object located in the region of the water-outlet opening and which actuates the water shut-off valve to shut off the water-throughflow path again on subsequent non-detection of the object and optionally after a fixed or adjustable period of time has elapsed, - the water shut-off valve being actuatable by the evaluation and control unit to open the water-throughflow path for the purpose of flushing thereof and/or flushing of the water-inlet line for the duration of an optionally adjustable water-throughflow period, characterised in that - while the water-throughflow path is open for the purpose of flushing thereof and/or flushing of the water-inlet line, the evaluation and control unit actuates the water shut-off valve to shut off the water-throughflow path when, during the water-throughflow period, the proximity sensor detects an object in the region below the water-outlet opening of the housing, the detection range of the proximity sensor being alterable by the evaluation and control unit, and the detection range of the proximity sensor is greater during the flushing than for the automatic opening of the water-throughflow path when the proximity sensor detects the approach of an object while the water-throughflow path is shut off.