WATER SENSOR

Photo of author

By Jackson Taylor

Home » Hardware » WATER SENSOR

As an Amazon Associate we earn from qualifying purchases.

A water sensor tells you when water is somewhere it should not be, or when a water level has moved too high or too low. Some sensors trigger an alarm. Others switch a pump on or off, or feed a reading to a controller. This guide explains the main types, where each one fits, and how to choose and install one.

What a water sensor does

Every water sensor answers one simple question: is there water here, and how much? The way it answers depends on the design. Some sensors are a simple mechanical switch. Others measure the electrical effect of water on two metal contacts. Some count how much liquid passes through a pipe.

The right choice depends on the job. Watching a tank is very different from watching a flower pot or a pipe under a sink.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

Common types of water sensors

  • Float switches: a float rises and falls with the liquid and opens or closes a switch. They suit tanks, sumps and pools.
  • Soil moisture modules: two probes measure how easily current passes through the soil. Wetter soil conducts better.
  • Leak detectors: flat sensors sit on the floor and sound an alarm when water bridges their contacts.
  • Flow sensors: these measure how much water moves through a pipe, not whether water is present. A water flow sensor is a good example.
  • Ultrasonic level sensors: they measure the distance to the water surface without touching the liquid.

Float switches for tanks and pools

A float switch is one of the simplest and most dependable ways to track a water level. The float sits on the surface. When the level reaches a set height, the float tilts or lifts and changes the state of an internal switch. That signal can start a pump, stop a pump or trigger an alert.

Two float switch listings from the original page are kept below. The listed prices carry no currency, and the stock counts are from the original listing, so check availability before you plan around them.

See also
Best Cameras for Macro Photography: 4 Picks by Focus Stacking and Weight

Tank Pool 52mm PP Liquid Water Level Sensor Horizontal Float Switch Down

This is a horizontal float switch for tanks and pools. "PP" in the name usually means polypropylene, a plastic that handles water well. Listed price: 110. Quantity remaining in the original listing: 3.

Tank Pool Float Switch Image

Tank Pool Water Level Liquid Sensor Float Switch

A second float switch for tank and pool water levels. It works on the same principle: the float follows the water and the switch changes state. Listed price: 110. Quantity remaining in the original listing: 4.

Float Switch Image 1 Float Switch Image 2

Where float switches work best

  • Water storage tanks that need a high or low level alert.
  • Pool or pond tanks that need topping up.
  • Sump pits where a pump should start when water rises.
  • Pump control, to stop small water pumps from running dry or overfilling a tank.

Their main limit is that they give a yes-or-no signal at one height. If you need to know the exact level, use a different sensor.

Soil humidity and moisture detection module

The third product on the original page is a soil humidity hygrometer moisture detection sensor module. Modules of this kind are popular for plant watering projects. You push the probe into the soil, and the board reports how wet it is. Many boards of this type give both an analog reading and a simple dry/wet signal, but check the listing for the exact outputs. Listed price: 68. Quantity remaining in the original listing: 4.

Soil Sensor Image 1 Soil Sensor Image 2 Soil Sensor Image 3

Keep in mind that readings from low-cost moisture probes are relative. They vary with soil type and probe position. Test the sensor in dry soil and in well-watered soil, and note both values before you set a threshold. Probes with exposed metal can also corrode over time in wet soil, so do not leave them powered all the time if you can avoid it.

For a fuller picture of plant conditions, pair it with a temperature and humidity sensor.

See also
BOOST CONVERTER USING ARDUINO - SIMULATION IN PROTEUS

How to choose the right water sensor

  1. Decide what you need to know. Presence of water, a level at one point, a continuous level or a flow rate each need a different sensor.
  2. Match it to the environment. A sensor in a tank or pool must tolerate constant contact with water. A floor leak sensor only needs to survive the occasional puddle.
  3. Check the output. A float switch gives an on/off contact. A moisture module may give an analog value. Make sure your controller or alarm can read it.
  4. Check the electrical rating. If a switch will control a pump directly, confirm the voltage and current it is rated for. If in doubt, use a relay.
  5. Plan for the contact type. If you do not want anything touching the water, an ultrasonic sensor wired to an Arduino can measure level from above.

Installation tips

  • Mount a float switch where the float can move freely and will not catch on pipes, walls or cables.
  • Set the trigger height before you fill the tank, then test it by raising the water slowly.
  • Seal cable entry points so water cannot travel along the wire.
  • Test any alarm or pump control regularly. A sensor you never test is easy to forget until it fails.
  • For leak protection, place sensors at the lowest points, near appliances, pipes and tank outlets.

Frequently asked questions

What is the difference between a float switch and a water leak sensor?

A float switch follows a liquid level and switches at a set height. A leak sensor detects water on a surface, usually with two contacts that the water bridges. Float switches suit tanks. Leak sensors suit floors and cabinets.

Can a soil moisture sensor detect a leak?

Not reliably. It is made to read how wet soil is, and it is not built for leak alarms or for sitting in standing water. Use a leak detector for that.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Can a float switch control a pump directly?

Sometimes, but only if its electrical rating covers the pump's load. Otherwise, use the switch to drive a relay or contactor that handles the pump current.

See also
HUMIDITY SENSOR (DHT11)

Why does my moisture sensor give different readings each time?

Probe position, soil density, soil type and probe corrosion all affect the reading. Insert the probe to the same depth each time, and calibrate it against dry and wet soil.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works