Miniature Liquid Optical Level Sensor Infrared Water Switch
A miniature liquid optical level sensor infrared water switch is a tiny, solid-state point-level device that uses an infrared (IR) LED and photodetector to detect the presence of water at a fixed point and switch an electrical output accordingly - with no moving parts. The IR light bounces differently off the prism tip in air (total internal reflection) versus when water wets it, so the sensor "sees" water arrive or leave and toggles an NPN, PNP, or IO-Link output to start a pump, open a valve, or raise an alarm. This guide focuses on the switching behavior and integration of these miniature IR water switches; for the underlying optics see how optical level sensors work and the infrared water level sensor.
What "Miniature Infrared Water Switch" Means
Break the name down:
Miniature - a small body (often a few mm to ~20 mm), for tight cavities, manifolds, and appliance plumbing.
Liquid optical - senses by light at a prism tip, not by float or conductivity.
Infrared - an IR LED/photodetector pair; IR is used because it is robust and unaffected by visible-light ambient conditions.
Water switch - the job: detect water at a point and switch an output on/off.
Together: a small, light-based, no-moving-part switch that turns a circuit on or off when water reaches its tip. See the broader optical level switch family.
How It Switches Water (Brief Principle)
The tip is a prism. In air, IR reflects internally back to the detector (湿/干 state = "dry"). When water wets the tip, the light escapes into the water, so the detector sees a sharp change - the sensor registers "water present." Because the change is binary and fast, the device acts as a clean point switch. Full principle: how optical liquid level sensors work and liquid vs solid detection.
The Switching Output
This is the heart of a "water switch":
Solid-state output. No relay, no mechanical contact - long life, fast, silent. Typical is a 3-wire DC NPN or PNP transistor output.
NPN (sinking) pulls the signal to 0 V when active; PNP (sourcing) drives it to +V. Match to your PLC input (NPN↔sinking, PNP↔sourcing) - same rule as proximity sensors. For precision/DC-output background, see 12V/24V NPN/PNP.
IO-Link / digital variants expose diagnostics (blockage, contamination) beyond a bare switch.
Normally Open (NO) / Normally Closed (NC). Choose based on fail-safe: if a wire breaks, should the system see "water" or "no water"? For a dry-run pump, you usually want loss-of-signal to stop the pump.
The output is discrete (on/off) - it tells you water is at the tip, not the tank's exact level. For exact level use a continuous technology (point vs continuous).
A small hysteresis is normal: the switch may trip at slightly different levels on the way up vs down to avoid chatter at the threshold. This is by design and should not be confused with drift. Some IO-Link models let you read the live optical state for diagnostics as well as the switched output.
Why IR Optical Suits Water
No moving parts - nothing to stick, jam, or wear in scale or debris. See no-moving-part sensors.
Works on clear liquids. Water is optically clear; the TIR change at the tip is unambiguous (see clear-liquid optics).
Small & fast. Miniature body fits appliances; response is milliseconds.
Low power. A few mA - ideal for battery or embedded systems.
Non-conductive media OK. Unlike conductive probes, it does not depend on water conductivity, so it also works on deionized water.
Easy to multiplex. Several tiny switches at different heights give coarse multi-point level without a single large sensor.
These are the five advantages over float switches.
Typical Specifications (Verify per Datasheet)
| Parameter | Typical Miniature IR Water Switch |
|---|---|
| Body material | Polysulfone (PSU), PP, or PVDF (water-safe, steam-cleanable) |
| Supply | 5–24 V DC (wide-range common) |
| Output | NPN / PNP 3-wire, sometimes IO-Link |
| Current rating | ~50–200 mA (switch a relay/PLC, not a pump directly) |
| Temperature | −25 to +80 °C typical; some to +125 °C |
| Pressure | Low (open-tank) to ~17 bar for reinforced bodies |
| Response | Milliseconds |
| Mounting | Thread, clip, or panel; tip flush, no air gap |
Confirm exact numbers on the datasheet - bodies and ratings vary by model (cf. OS950 miniature, Optomax, OS3 industrial).
Wiring the Water Switch
Brown → +V (5–24 V DC), Blue → 0 V, Black → signal (standard 3-wire).
NPN: active = signal to 0 V → use a sinking PLC input.
PNP: active = signal to +V → use a sourcing input.
Don't power the pump from the sensor. The switch handles only mA; drive a relay or PLC output for the pump/valve (contrast with float switch wiring).
Fail-safe: decide the loss-of-signal state; match NO/NC so a fault stops a risky action.
Installation Best Practices
Mount the tip flush with no trapped air gap - an air pocket defeats the TIR detection and causes a false "dry" reading.
Avoid turbulence and bubbles at the tip; aeration can mimic a level change. Locate the sensor in a calm zone or stilling well.
Keep the tip clean. Although the optical method tolerates clean water well, heavy scale or oil film can shift the threshold - inspect periodically.
Orient per the drawing. Some bodies must sit a specific way; follow the maker's mounting note.
Seal the body, not the tip. The prism must stay wetted; only the body/thread needs sealing.
Troubleshooting
| Symptom | Likely Cause | Fix |
|---|---|---|
| No switch at all | Wrong polarity / no supply | Check brown/blue, supply range |
| Stuck "water" | Coating/oil on tip | Clean; consider non-contact tech |
| Stuck "dry" | Air gap at tip | Remount flush, bleed air |
| Chatters | Turbulence/bubbles | Relocate to calm zone |
| Wrong logic | NO/NC set wrong | Swap NO/NC or invert in PLC |
For model-specific notes see OS950 and Optomax.
Using It as a Water Switch (Applications)
| Use | What the Switch Does |
|---|---|
| Pump dry-run protection | Stops pump when water leaves the tip |
| Tank full / overflow alarm | Alarms when water reaches the tip |
| Leak detection | Trips when water appears where it shouldn't |
| Appliance level | Washing machine / dishwasher fill control (washer sensor) |
| Ice maker / humidifier / CPAP | Detects reservoir empty or full |
| Coffee / water dispenser | Controls fill and guards empty |
| Aquarium / lab / medical | Precise point control, low volume |
| Cooling loop | Guards coolant presence |
For automatic pump control see turn off a pump automatically and tank automation.
IR Optical Water Switch vs Float Switch
| Factor | Miniature IR Optical | Float Switch |
|---|---|---|
| Moving parts | None | Float/reed/microswitch |
| Size | Very small | Larger |
| Media reliance | Optical (any clear liquid) | Buoyancy (needs SG margin) |
| Conductivity | Not required | Not required (magnetic) |
| Output | Solid-state NPN/PNP/IO-Link | Mechanical/reed → may need relay |
| Best | Tight, clean, low-volume water | Larger tanks, rough service |
See float switch overview and float vs capacitive.
Selection Checklist
Point or continuous? This is a point switch - choose continuous if you need exact level.
Body material. PSU for water/steam; PVDF/PEEK for harsher chemistry.
Supply & output. 5–24 V; NPN/PNP/IO-Link matched to the controller.
Temperature/pressure. Confirm vs duty (steam? pressurized line?).
Fail-safe. NO/NC for the right fault behavior.
Hazardous area? Use a certified model (hazardous guide).
Mounting. Thread/clip/panel; tip flush, no air gap.
Pump/valve drive. Plan a relay/PLC stage, not direct.
Our choosing the right switch maps these to products.
Common Mistakes
Powering the pump from the sensor. The mA-rated switch needs a relay/PLC stage.
Mismatching NPN/PNP to the PLC input - reads nothing.
Air gap at the tip. Mount flush; an air pocket defeats TIR detection.
Assuming it measures level. It is a point switch, not a gauge.
Using it in coated/foamy water without checking - heavy coating can affect the tip (consider RF admittance or radar).
Skipping fail-safe NO/NC - a broken wire should fail safe.
FAQ: Miniature Infrared Optical Water Switch
What is a miniature infrared optical water switch?
A tiny solid-state point sensor using an IR LED/detector at a prism tip to detect water and toggle an electrical output - no moving parts.
How does it detect water?
In air the IR totally reflects back to the detector; when water wets the tip, light escapes, so the detector sees a sharp change = water present.
Is it the same as a float switch?
No - it has no moving parts and senses optically, while a float uses buoyancy and a mechanical/magnetic switch.
What output does it give?
Usually a 3-wire DC NPN or PNP transistor output; some offer IO-Link. It switches on/off, it does not give exact level.
Can it run a pump directly?
No - the mA-rated output drives a relay or PLC, which then switches the pump.
NPN or PNP - which do I need?
Match your controller: NPN to a sinking input, PNP to a sourcing input.
Does it need water to be conductive?
No. It is optical, so it works on deionized and pure water too.
What body material is best for water?
Polysulfone (PSU) for most water/steam duty; PVDF/PEEK for aggressive chemistry.
Is it good for exact tank level?
No - it is a point switch. Use a continuous sensor for exact level.
Can it detect leaks?
Yes - place it where water should not be; it trips when water appears.
Is it safe for hazardous areas?
Only if the specific model is certified (ATEX/IECEx). See the hazardous guide.
Why choose IR optical over other water switches?
No moving parts, tiny size, fast, low power, works on clear/non-conductive water, and long life.
What is hysteresis in a water switch?
A small deliberate difference between the trip level rising vs falling, added so the output does not chatter at the threshold. It is normal, not drift.
Why won't my switch change state?
Usually polarity/supply (check brown/blue and voltage), an air gap at the tip, or a coating on the prism. Verify wiring, remount flush, and clean the tip.
Can several switches show rough level?
Yes - mounting two or more at different heights gives coarse multi-point level (empty/low/ok/full). For smooth continuous level, use a continuous sensor instead.
Conclusion
A miniature liquid optical level sensor infrared water switch is a small, light-based, no-moving-part device that detects water at a point via IR total-internal-reflection at a prism tip and toggles a solid-state NPN/PNP (or IO-Link) output. Its value is in switching, not measuring: it starts pumps, opens valves, sounds alarms, and guards appliances the moment water arrives or leaves its tip. Use it where size, speed, and reliability matter and where a float would be too big or wear out; drive the load through a relay/PLC stage, match NPN/PNP to your input, mount the tip flush, and set NO/NC for fail-safe behavior. With those basics right, a miniature IR water switch is one of the most dependable, maintenance-free ways to turn "is there water here?" into a clean electrical decision. For exact level, pair it with a continuous sensor - and for the optics and model choices, see the linked guides.
For more, see how optical sensors work, infrared water level sensor, miniature plastic optical, OS950, Optomax, OS3, optical switches for liquids/tanks, 5 advantages over float, liquid vs solid detection, clear-liquid optics, float switch wiring, pump automation, tank automation, point vs continuous, choosing the right switch, hazardous guide, and the ultimate guide.
