Machine for cleaning and sanitizing comprising a hydraulic circuit comprising a first branch, a second branch and a third branch, a pump introducing water into said hydraulic circuit at a predefined pressure, a first three-way hydraulic fitting (31, 36) comprising an inlet in flow communication with said pump, a first outlet connected in flow communication with said first branch and a second outlet connected in flow communication with said second branch, a detergent injector introducing a detergent into the first branch of the circuit, wherein said detergent injector is mounted in flow communication with said first branch, characterized in that said detergent injector comprises a first inlet connected in flow communication with the first outlet of the first three-way hydraulic fitting (31, 36), a second inlet in flow communication with a detergent tank containing the detergent, an outlet, a mixing chamber in flow communication with the first inlet, the second inlet and with the outlet of the detergent injector, wherein said mixing chamber is adapted to mix the water with the detergent, a second three-way fitting comprising a first inlet mounted in flow communication with the outlet of said detergent injector, a second inlet mounted in flow communication with said third branch, an outlet, a mixing chamber in flow communication with said first inlet, said second inlet and said outlet of the second three-way fitting, at least one air compressor in flow communication with said third branch, a fourth three-way fitting (34, 37) comprising a first inlet connected in flow communication with said outlet of the second three-way fitting, a second inlet connected with the second outlet of the first three-way fitting (31,36), an outlet connected to a first outlet of the machine, wherein said first outlet of the machine is adapted to mount a foam or rinse water dispenser which is adapted to emit foam arriving from the first branch or water arriving from said second branch, a flow selector (344, 364) adapted to divert either the foam coming from the first branch or the water coming from the second branch towards said first outlet of the machine. a hydraulic circuit comprising a first branch, a second branch and a third branch, a pump introducing water into said hydraulic circuit at a predefined pressure, a first three-way hydraulic fitting (31, 36) comprising an inlet in flow communication with said pump, a first outlet connected in flow communication with said first branch and a second outlet connected in flow communication with said second branch, a detergent injector introducing a detergent into the first branch of the circuit, wherein said detergent injector is mounted in flow communication with said first branch, characterized in that said detergent injector comprises a first inlet connected in flow communication with the first outlet of the first three-way hydraulic fitting (31, 36), a second inlet in flow communication with a detergent tank containing the detergent, an outlet, a mixing chamber in flow communication with the first inlet, the second inlet and with the outlet of the detergent injector, wherein said mixing chamber is adapted to mix the water with the detergent, a second three-way fitting comprising a first inlet mounted in flow communication with the outlet of said detergent injector, a second inlet mounted in flow communication with said third branch, an outlet, a mixing chamber in flow communication with said first inlet, said second inlet and said outlet of the second three-way fitting, at least one air compressor in flow communication with said third branch, a fourth three-way fitting (34, 37) comprising a first inlet connected in flow communication with said outlet of the second three-way fitting, a second inlet connected with the second outlet of the first three-way fitting (31,36), an outlet connected to a first outlet of the machine, wherein said first outlet of the machine is adapted to mount a foam or rinse water dispenser which is adapted to emit foam arriving from the first branch or water arriving from said second branch, a flow selector (344, 364) adapted to divert either the foam coming from the first branch or the water coming from the second branch towards said first outlet of the machine.