Skip to main content
Any Framework

Iot.Device.LiquidLevel assembly for .NET nanoFramework C# projects

Published
Mar 10, 2026
7mo ago
Total Downloads
25.1K
25,079

Install

dotnet add package nanoFramework.Iot.Device.LiquidLevel --version 2.0.0-preview.16

No framework information available.

README

Digital liquid level switch

Digital liquid level switches are devices that can detect the presence of liquid/water. GPIO can be used to communicate with the devices.

Documentation

The implementation supports any single pin output digital liquid level switch.

Usage

Define the LLC200D3SH sensor using the LiquidLevelSwitch class.

using (LiquidLevelSwitch sensor = new LiquidLevelSwitch(23, PinValue.Low))
{
    while (true)
    {
        // read liquid level switch
        Debug.WriteLine($"Detected: {sensor.IsLiquidPresent()}");
        Debug.WriteLine();

        Thread.Sleep(1000);
    }
}

An example on how to use the specific LLC200D3SH device binding is available in the samples folder.

LLC200D3SH Circuit

The following fritzing diagram illustrates one way to wire up the Optomax LLC200D3SH digital liquid level switch with a MCU.

MCU Breadboard diagram

Changes from Previous Version

No structural changes between v1.2.1040 and v2.0.0-preview.16.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.