What type of sensor is used in this water flow sensor with two wires

proximity-sensorsensor

I am trying to figure out what type of sensor I have that is used to detect water flow. This sensor is placed near a cylinder of water with some type of float. When the water pressure causes the float to pass the head of the sensor some kind of output is registered with the micro-controller indicating the flow of water. However, I have now idea how this device is used in a circuit and connected to a micro-controller.

Because this sensor has only two wires I can't figure out how it works. Is it possible that it just produces a current when a magnetic field is present? And if so, would it likely be necessary to amplify the signal so that a micro-controller analog to digital input can detect the change in voltage?

It came out of a "Pool Warden" which is used to automate pool water chemistry by measuring pH, ORP and temperature. This device is used to let the device know when water is flowing through a water block.

Anybody know how this sensor works, what it might be and how I would use it?

enter image description here

Best Answer

A simple sensor used in such an application is a magnetic reed switch.

Reed switch (source)

The simplest normally-open reed switch has two contacts, which are separated when there is no strong magnetic field incident on the switch. When the switch is exposed to a strong enough magnetic field, the contacts close and a circuit can be established through it. In your case, the float would have a small magnet on it, which passes close to the reed switch when the float moves.

The advantage of this approach is that no current flows, and hence no power is consumed, while the switch is open. Power requirement of the sensor is marginal even when the switch is off - just sufficient to overcome a pull-up resistor at the microcontroller sense pin, for instance.

schematic

simulate this circuit – Schematic created using CircuitLab

Related Topic