An integrally formed sensor type faucet liquid soap dispenser, comprising: a faucet main body, including: a liquid soap pump; a liquid soap bottle, with its output connected to a first input of the liquid soap pump; an air pump; a foaming device, with its first input connected to an output of the liquid soap pump, and with its second input connected to an output of the air pump, while an output of the foaming device is connected to a liquid soap output port; a liquid soap output sensor; a liquid soap output sensor window; a water output sensor; a water input tube; a water output tube, connected to a water output port; an electric magnetic valve, with its second input connected to the water input tube, and with its output connected to the water output tube; a main control, connected to a second input of the liquid soap pump, an input of the air pump, an input of the water output sensor, an input of the liquid soap output sensor, a first input of the electric magnetic valve; and a power supply, connected to the main control, whereby the faucet main body is provided with an upper surface, a lower surface, a side surface, and a rear surface, characterised in that it further comprises: a water output sensor window, disposed on the lower surface at a water output end of the faucet main body, and having the water output sensor provided inside; wherein the liquid soap output sensor window is disposed on the upper surface or the rear surface at the water output end of the faucet main body, and has the liquid soap output sensor provided inside; and wherein the water output port and the liquid soap output port are both disposed on the lower surface at the water output end of the faucet main body, such that the water output port and the liquid soap output port are adapted to output water and liquid soap respectively through using an interlock circuit, as such, water and liquid soap are not output at the same time. a liquid soap pump; a liquid soap bottle, with its output connected to a first input of the liquid soap pump; an air pump; a foaming device, with its first input connected to an output of the liquid soap pump, and with its second input connected to an output of the air pump, while an output of the foaming device is connected to a liquid soap output port; pump, and with its second input connected to an output of the air pump, while an output of the foaming device is connected to a liquid soap output port; a liquid soap output sensor; a liquid soap output sensor window; a water output sensor; a water input tube; a water output tube, connected to a water output port; an electric magnetic valve, with its second input connected to the water input tube, and with its output connected to the water output tube; a main control, connected to a second input of the liquid soap pump, an input of the air pump, an input of the water output sensor, an input of the liquid soap output sensor, a first input of the electric magnetic valve; and a power supply, connected to the main control, whereby the faucet main body is provided with an upper surface, a lower surface, a side surface, and a rear surface, characterised in that it further comprises: a water output sensor window, disposed on the lower surface at a water output end of the faucet main body, and having the water output sensor provided inside; wherein the liquid soap output sensor window is disposed on the upper surface or the rear surface at the water output end of the faucet main body, and has the liquid soap output sensor provided inside; and wherein the water output port and the liquid soap output port are both disposed on the lower surface at the water output end of the faucet main body, such that the water output port and the liquid soap output port are adapted to output water and liquid soap respectively through using an interlock circuit, as such, water and liquid soap are not output at the same time. a water output sensor window, disposed on the lower surface at a water output end of the faucet main body, and having the water output sensor provided inside; wherein the liquid soap output sensor window is disposed on the upper surface or the rear surface at the water output end of the faucet main body, and has the liquid soap output sensor provided inside; and wherein the water output port and the liquid soap output port are both disposed on the lower surface at the water output end of the faucet main body, such that the water output port and the liquid soap output port are adapted to output water and liquid soap respectively through using an interlock circuit, as such, water and liquid soap are not output at the same time.