nanoFramework.Iot.Device.Ms5611 2.0.0-preview.32

Prefix Reserved
This is a prerelease version of nanoFramework.Iot.Device.Ms5611.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Ms5611 --version 2.0.0-preview.32
                    
NuGet\Install-Package nanoFramework.Iot.Device.Ms5611 -Version 2.0.0-preview.32
                    
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.Ms5611" Version="2.0.0-preview.32" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Ms5611" Version="2.0.0-preview.32" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Ms5611" />
                    
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.Ms5611 --version 2.0.0-preview.32
                    
#r "nuget: nanoFramework.Iot.Device.Ms5611, 2.0.0-preview.32"
                    
#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.Ms5611@2.0.0-preview.32
                    
#: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.Ms5611&version=2.0.0-preview.32&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Ms5611&version=2.0.0-preview.32&prerelease
                    
Install as a Cake Tool

Ms5611 in GY-63 module - temperature and pressure sensor

Ms5611 is a device that reads barometric pressure, altitude and temperature. I2C can be used to communicate with the device.

Documentation

Datasheet for the Ms5611.

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.

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

//Czestochowa, Poland ,3rd floor
double altitude = 250;
// bus id on the MCU
const int busId = 1;
I2cConnectionSettings i2cSettings = new(busId, Ms5611.DefaultI2cAddress);
using I2cDevice i2cDevice = I2cDevice.Create(i2cSettings);
var sensor = new Ms5611(i2cDevice, Sampling.Standard);

while (true)
{
    var temp = sensor.ReadTrueTemperature();
    var temperature = sensor.ReadTemperature();
    var pressure = sensor.ReadSeaLevelPressure(Length.From(altitude, LengthUnit.Meter));
    Debug.WriteLine($"Temperature: {temperature.DegreesCelsius.ToString("F")}\u00B0C, Pressure: {pressure.Hectopascals.ToString("F")}hPa");
    Thread.Sleep(5000);
}

The following fritzing diagram illustrates one way to wire up the GY-63 module with an MCU like ESP32 using I2C.

ESP32 Breadboard diagram

SPI implementation hasn't been done.

Product Compatible and additional computed target framework versions.
.NET Framework net 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 33 5/20/2026
2.0.0-preview.69 44 5/18/2026
2.0.0-preview.62 50 5/13/2026
2.0.0-preview.45 55 4/29/2026
2.0.0-preview.32 57 4/20/2026
2.0.0-preview.16 62 3/10/2026
1.2.952 124 3/4/2026
1.2.907 276 10/2/2025
1.2.892 249 7/30/2025
1.2.889 243 7/28/2025
1.2.869 343 4/2/2025
1.2.864 309 4/2/2025
1.2.852 329 3/11/2025
1.2.846 331 3/10/2025
1.2.822 278 2/26/2025
1.2.775 267 2/4/2025
1.2.772 277 2/4/2025
1.2.755 282 1/31/2025
1.2.743 249 1/20/2025
1.2.737 237 1/13/2025
Loading failed