nanoFramework.Iot.Device.Max44009 2.0.0-preview.69

Prefix Reserved
This is a prerelease version of nanoFramework.Iot.Device.Max44009.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Max44009 --version 2.0.0-preview.69
                    
NuGet\Install-Package nanoFramework.Iot.Device.Max44009 -Version 2.0.0-preview.69
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Max44009" Version="2.0.0-preview.69" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Max44009" Version="2.0.0-preview.69" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Max44009" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.Max44009 --version 2.0.0-preview.69
                    
#r "nuget: nanoFramework.Iot.Device.Max44009, 2.0.0-preview.69"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package nanoFramework.Iot.Device.Max44009@2.0.0-preview.69
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Max44009&version=2.0.0-preview.69&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Max44009&version=2.0.0-preview.69&prerelease
                    
Install as a Cake Tool

MAX44009 - Ambient Light Sensor

The MAX44009 ambient light sensor features an I2C digital output that is ideal for a number of portable applications such as smartphones, notebooks, and industrial sensors. At less than 1µA operating current, it is the lowest power ambient light sensor in the industry and features an ultra-wide 22-bit dynamic range from 0.045 lux to 188,000 lux.

MAX44009 - Ambient Light Sensor

Documentation

  • You can find the datasheet here

Usage

Important: make sure you properly setup the I2C pins especially for ESP32 before creating the I2cDevice, make sure you install the nanoFramework.Hardware.ESP32 nuget:

//////////////////////////////////////////////////////////////////////
// when connecting to an ESP32 device, need to configure the I2C GPIOs
// used for the bus
Configuration.SetPinFunction(21, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(22, DeviceFunction.I2C1_CLOCK);

For other devices like STM32, please make sure you're using the preset pins for the I2C bus you want to use.

Hardware Required

  • MAX44009
  • Male/Female Jumper Wires

Circuit

MAX44009 circuit

  • SCL - SCL
  • SDA - SDA
  • VCC - 5V
  • GND - GND
I2cConnectionSettings settings = new I2cConnectionSettings(1, Max44009.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);

// integration time is 100ms
using (Max44009 sensor = new Max44009(device, IntegrationTime.Time100))
{
    while (true)
    {
        // read illuminance
        Debug.WriteLine($"Illuminance: {sensor.Illuminance}Lux");
        Debug.WriteLine();

        Thread.Sleep(1000);
    }
}

Result

Sample Result

Product Compatible and additional computed target framework versions.
.NETnanoFramework netnano1.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.73 43 5/20/2026
2.0.0-preview.69 53 5/18/2026
2.0.0-preview.62 55 5/13/2026
2.0.0-preview.45 52 4/29/2026
2.0.0-preview.32 51 4/20/2026
2.0.0-preview.16 75 3/10/2026
1.2.952 128 3/4/2026
1.2.931 316 11/10/2025
1.2.907 258 10/2/2025
1.2.889 245 7/28/2025
1.2.869 346 4/2/2025
1.2.864 307 4/2/2025
1.2.852 335 3/11/2025
1.2.846 331 3/10/2025
1.2.822 256 2/26/2025
1.2.775 270 2/4/2025
1.2.772 270 2/4/2025
1.2.755 270 1/31/2025
1.2.743 273 1/20/2025
1.2.737 255 1/13/2025
Loading failed