The invention relates to a photoelectric liquid sensor. The photoelectric liquid sensor is characterized by comprising a transmitting
optical fiber and a receiving
optical fiber which are bilaterally oppositely arranged at an interval, the outer end of the transmitting
optical fiber and the outer end of the receiving optical
fiber are led out of a fluid, a light-emitting
diode used for lighting the transmitting optical
fiber is arranged at the position, adjacent to the transmitting optical
fiber, out of the fluid, the receiving optical fiber is capable of receiving the light transmitted by the transmitting optical fiber and transmitting the light to a
photoelectric conversion module, a shielding piece capable of moving under the action of the fluid is arranged between the transmitting optical fiber and the receiving optical fiber, and whether the receiving optical fiber can receive the light transmitted from the transmitting optical fiber or not is determined by
vertical motion of the shielding piece. The
diameter of the
transmitted light is quite small due to the features of the light transmitted by the fiber, the light can be sensed if only the shielding piece slightly moves by a distance, and sensitivity is quite high. Compared with a traditional magnetic
water flow sensor, the photoelectric liquid sensor has the advantages of freeness from affection of external
magnetic field, operation is stable, the fiber is less prone to damage, and the part easy to be damaged is the light-emitting
diode which is quite convenient to maintain. The invention further relates to a water pump provided with the above sensor.