Any Framework
Iot.Device.Lm75 assembly for .NET nanoFramework C# projects
Published
Jun 14, 2023
3y ago
Total Downloads
54.8K
54,787
Install
dotnet add package nanoFramework.Iot.Device.Lm75 --version 1.2.341
No framework information available.
README
LM75 - Digital Temperature Sensor
The LM75 is a temperature sensor, Delta-Sigma analog-to-digital converter, and digital over-temperature detector with I2C interface.
Documentation
- LM75 datasheet

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.
I2cConnectionSettings settings = new I2cConnectionSettings(1, Lm75.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);
using(Lm75 sensor = new Lm75(device))
{
double temperature = sensor.Temperature.Celsius;
}
LM75 Example
Circuit

- SCL - SCL
- SDA - SDA
- VCC - 5V
- GND - GND
Code
I2cConnectionSettings settings = new I2cConnectionSettings(1, Lm75.DefaultI2cAddress);
I2cDevice device = I2cDevice.Create(settings);
using(Lm75 sensor = new Lm75(device))
{
while (true)
{
Debug.WriteLine($"Temperature: {sensor.Temperature.Celsius} ℃");
Debug.WriteLine();
Thread.Sleep(1000);
}
}
Result

Changes from Previous Version
No structural changes between v1.2.337 and v1.2.341.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
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.