OS2 Digital Optical Level Sensor

Aug 02, 2026

Leave a message

OS2 Digital Optical Level Sensor: The Complete Guide

In this guide: The OS2 as a digital (logic-level) optical level sensor in the Optomax family - its operating principle (total internal reflection), how the digital output differs from the industrial variant, key specifications, microcontroller/PLC interfacing, how it compares with the OS4 industrial-glass version, and the complete FAQ.


OS2 Digital Optical Level Sensor: Quick Answer

The OS2 is a digital optical liquid level sensor - a point-level switch in the Optomax family (SST Sensing / Process Sensing Technologies) that detects liquid with an infrared LED and a sealed precision tip, and reports the result as a logic-level (digital) output rather than a high-current industrial switch. Like all Optomax optical switches, the OS2 uses total internal reflection: when the tip is dry (air), infrared light reflects back to a photodetector (no liquid); when liquid wets the tip, the liquid's higher refractive index bends the light out of the tip, the detector signal drops, and the comparator flips the output. What makes the OS2 "digital" is its output stage: instead of sinking/sourcing ~1 A like the industrial Optomax variants, it presents a logic-level open-collector/open-drain transistor (NPN or PNP) meant to drive a microcontroller input, PLC logic input, or a small relay - ideal for embedded and electronics applications. The core optical physics is identical to the rest of the Optomax family; the difference is the output interface. Specific OS2-variant parameters should be confirmed against the official Optomax datasheet (see disclaimer).


Product Family Context

Where the OS2 Sits in Optomax

The Optomax optical level-switch family:

Variant Tip Output Class Best For
Digital (OS2-class) Plastic (PP/PSU) Logic-level open-collector MCU / PLC logic
Industrial (OS4-class) Plastic 1 A sink/source Direct relay/pump
Industrial Glass (OS4) Glass 1 A, high temp Food, chemical, high temp
LLHP Plastic/glass High power Demanding duty
POS Glass Premium High-end
Basic Plastic Low cost Cost-sensitive

One principle, several outputs: Every Optomax variant senses the same way (IR TIR at a sealed tip). The family diverges at the output and the tip material. The OS2 represents the digital/logic-level branch - the same sealed optical tip, but an output staged for electronics rather than power switching. (The Optomax Industrial Series part LLC200D324-003, documented by distributors, carries the 8–30 V / 1 A industrial class; the digital branch trades that current for logic compatibility.)


Operating Principle

Total Internal Reflection at a Sealed Tip

The optical sensing (same across Optomax):

State Light Path Detector Output
Dry (air) Total internal reflection High No liquid
Wet (liquid) Refraction escapes tip Low Liquid present

Snell's law: The tip (glass or plastic, n ≈ 1.5) totally internally reflects IR light in air (n = 1.00; critical angle ≈ 41.8° glass-to-air) but refracts it out in liquid (water n ≈ 1.33, oil n ≈ 1.46; larger critical angle). The refractive step - not color or conductivity - is the trigger, so one OS2 tip detects water, oil, and most opaque liquids alike. The photodetector current is decided by a comparator with hysteresis, which sets the digital output state.


What "Digital" Means Here

Logic-Level Output, Not Power Switch

Digital vs. industrial output:

Feature Digital (OS2) Industrial (OS4-class)
Output Logic-level open-collector 1 A sink/source
Load MCU / PLC logic / small relay Relay / pump / alarm directly
Supply Logic-level (lower V) 8–30 V DC
Interface Pull-up to logic rail Load to ground/source
Use Embedded / electronics Power switching

Built for boards: The OS2's output is a transistor whose collector/drain is brought out as an open switch - you add a pull-up resistor to your logic rail (e.g., 3.3 V or 5 V) and read a clean high/low from a GPIO or PLC input. That makes it drop straight into an Arduino, Raspberry Pi, ESP32, or PLC logic input without a relay or driver, which is exactly why it is called "digital."


Key Specifications

Representative Optomax Digital Class Values

Typical class values for a digital Optomax optical level switch:

Parameter Typical Value
Supply (logic) Logic-level (e.g., ~5 V typical; confirm vs. variant)
Output Open-collector NPN or open-drain PNP
Output type Logic-level (not 1 A power)
Response < 1 ms
LED wavelength 850–950 nm (IR)
Tip material PP / PSU (plastic)
Temperature −25 to +80 °C (extend −40 to +125 °C, variant)
Thread M12 × 1 typical
Ingress IP67 / IP68

These are representative Optomax Digital class values compiled from the family's published specifications. The exact OS2 supply voltage, output polarity, and temperature rating must be confirmed against the official Optomax datasheet (see disclaimer).


Digital Interfacing

Connecting the OS2 to Electronics

Typical wiring (NPN open-collector example):

Connection To
V+ (supply) Logic rail (per variant)
Output (collector) Through pull-up to logic rail; other side → MCU GPIO
GND Common ground
Dry Output pulled high (no liquid)
Wet Output pulled low (liquid present)

Read it like a button: With a pull-up resistor, the OS2 behaves like a liquid-active switch: logic high when dry, logic low when wet (or vice-versa per polarity). Debounce in software is rarely needed because the internal hysteresis already prevents chatter from bubbles or waves. For a PNP (open-drain source) version, the sense is inverted and the pull-up becomes a pull-down. Either way, the sensor feeds a logic input directly - no relay, no driver.


OS2 vs. OS4

Digital vs. Industrial Glass

Aspect OS2 (Digital) OS4 (Industrial Glass)
Tip Plastic (PP/PSU) Glass
Output Logic-level open-collector 1 A sink/source
Drives MCU / PLC logic Relay / pump directly
Temp ceiling −25 to +80 °C (typ.) Up to +125 °C (extended)
Food/chem General Better (glass)
Use case Embedded / electronics Power switching

Pick by what it drives: If the sensor feeds a controller and a separate relay or PLC does the switching, the OS2 digital is the natural fit - smaller, logic-friendly, MCU-direct. If the sensor must itself energize a pump or alarm without extra electronics, the OS4-class industrial (1 A) variant is the right call. Both sense identically; they differ only at the output and the tip material.


Advantages

Why Choose the Digital Optical Switch

Advantage Why
MCU-direct Logic output, no relay/driver
No moving parts Sealed, reliable
Millisecond response Fast trip
Any liquid (refractive) Water, oil, opaque
Small / low power Fits compact builds
Solid-state output No contact wear
Long life Photons don't wear

Applications

Where the Digital OS2 Fits

Application Why Digital OS2
MCU / Arduino projects Logic input, no driver
Appliance control boards Direct logic sense
PLC logic input Clean on/off
Leak / overflow detection Fast, sealed
Medical / lab devices Small, hygienic
Battery / low-power systems Low current
Tank alarm to controller Logic to PLC

Installation & Wiring

Getting a Clean Signal

Step Action
1. Confirm polarity NPN or PNP per variant
2. Set supply Logic-level per datasheet
3. Add pull-up/down To logic rail (NPN/PNP)
4. Share ground MCU/PLC common
5. Mount orientation Tip wetted as intended
6. Keep tip clean Fouling blinds optic
7. Avoid air bubble Trapped bubble mimics dry

Clean tip, correct polarity: As with every optical switch, the OS2 "sees" through its tip - keep it clean and ensure the liquid actually wets it. Wire the output with the correct pull-up (NPN) or pull-down (PNP) and a shared ground, and the controller reads a stable digital level with no extra parts.


Frequently Asked Questions

Q1: What is the OS2 digital optical level sensor?

The OS2 is a digital (logic-level) optical liquid level sensor in the Optomax family (SST Sensing / Process Sensing Technologies). It detects liquid with an infrared LED and a sealed precision tip using total internal reflection: dry, the light reflects back to a photodetector (no liquid); wet, the liquid's refractive index bends the light out of the tip and the detector signal drops, flipping the output. What makes the OS2 "digital" is its output stage - a logic-level open-collector/open-drain transistor (NPN or PNP) intended to drive a microcontroller GPIO, PLC logic input, or small relay, rather than the ~1 A industrial switch of the Optomax Industrial variants. The optical sensing is identical to the rest of the family; the OS2 simply presents the result as a digital signal for electronics. Exact OS2-variant specs should be confirmed against the official Optomax datasheet.

Q2: How is the OS2 different from the OS4 industrial optical sensor?

The OS2 and OS4 sense liquid the same way - infrared total internal reflection at a sealed tip - but differ at the output and the tip. The OS2 is the digital variant: a logic-level open-collector/open-drain output meant for microcontrollers and PLC logic inputs, typically at a lower logic supply voltage, and it does not source or sink ~1 A. The OS4-class industrial variants (including the Industrial Glass version with a glass tip) output up to ~1 A sink/source so they can directly energize a relay, pump, or alarm without extra electronics, and the glass tip supports higher temperatures and food/chemical duty. In short: OS2 → logic to a controller; OS4 → power switching directly. Choose by what the sensor must drive.

Q3: How do I connect an OS2 digital optical level sensor to a microcontroller?

Connect the OS2 to a microcontroller by powering it from the logic rail at the variant's specified voltage, sharing ground with the MCU, and reading its open-collector (NPN) output through a pull-up resistor to the logic rail into a GPIO. When the tip is dry, the output is pulled high (no liquid); when liquid wets the tip, the transistor pulls the output low (liquid present) - or the inverse for a PNP/open-drain-source version, which uses a pull-down. Because the sensor has internal hysteresis, software debouncing is usually unnecessary. For a PNP variant the sense inverts and the pull-up becomes a pull-down. Either way the OS2 feeds a digital input directly, with no relay or driver in between.

Q4: Why use a digital optical level sensor instead of a float switch?

A digital optical level sensor like the OS2 has no moving parts, while a float switch relies on a float, magnet, and reed or microswitch that can stick, wear, or trap debris. The OS2's tip is sealed, so there are no open contacts in the liquid and it is clean and hygienic; a float rides in the liquid and can foul or jam. The OS2 responds in under a millisecond and outputs a logic-level signal straight into a microcontroller or PLC, whereas a float's mechanical action is slower and its contacts can arc. Both detect most liquids, but the OS2 is the compact, maintenance-free, MCU-direct point specialist, ideal for embedded and electronics builds where a float's relay or mechanical motion is unwanted.

Q5: What are the limitations of the OS2 digital optical level sensor?

The main limitation of the OS2 is that it senses through its tip, so a fouled, coated, or scaled face shifts the threshold and can cause a missed or false trip - the tip must be kept clean and must actually be wetted by the liquid, and an air bubble trapped against the tip can mimic a dry reading. It is intrinsically a point (on/off) device, not a continuous gauge; for live 0–100% level you need ultrasonic, radar, capacitive, or pressure. As a digital variant it is built to drive logic, not to directly switch a heavy load, so a pump or alarm is usually handled by a relay or PLC downstream of the controller. Within those bounds - clean tip, point duty, logic interfacing - it is robust and long-lived.


The Bottom Line

The OS2 is a digital optical liquid level sensor in the Optomax family that detects liquid by infrared total internal reflection at a sealed tip (dry = light reflects back, no liquid; wet = liquid refracts the light out, liquid present) and reports the result as a logic-level open-collector/open-drain output (NPN or PNP) for direct connection to a microcontroller, PLC logic input, or small relay. It shares the Optomax optical physics and the refractive-index trigger (one tip detects water, oil, and opaque liquids) with the whole family, but the "digital" in its name is the real differentiator: a logic-level output staged for electronics rather than the ~1 A industrial switch of the OS4-class variants, so it drops straight into an Arduino, ESP32, or PLC without a driver or relay. Representative class values are logic-level supply, <1 ms response, 850–950 nm IR, a PP/PSU plastic tip, −25 to +80 °C (extendable), M12 × 1 thread, and IP67–68 sealing. Choose the OS2 when the sensor feeds a controller and a separate stage does the power switching; choose the OS4-class industrial (1 A, glass tip) when the sensor must itself drive a pump or alarm. Keep the tip clean and wetted, wire the output with the correct pull-up or pull-down and a shared ground, and the OS2 gives a stable digital level with no moving parts.


Last updated: August 2026

Disclaimer: This guide describes the OS2 as a digital (logic-level) optical level sensor within the Optomax family (SST Sensing / Process Sensing Technologies). The Optomax family and its operating principle are established and documented (e.g., the Optomax Industrial Series part LLC200D324-003 carries 8–30 V DC, 7.5 mA max, 1 A sink/source, −25 to +80 °C class values). The specific "OS2" designation and its exact supply voltage, output polarity, temperature rating, and certification could not be pinned to a single public datasheet entry in the verification search and are presented here as Optomax Digital-family class values. For procurement or design, confirm the exact OS2 variant parameters against the official SST Sensing / Process Sensing Technologies Optomax datasheet. This guide is not affiliated with, endorsed by, or sponsored by SST Sensing, Process Sensing Technologies, or any distributor.

Send Inquiry