Table of Contents

Class Dht12

Namespace
Iot.Device.DHTxx.Esp32
Assembly
Iot.Device.Dhtxx.Esp32.dll

Temperature and Humidity Sensor DHT12

public class Dht12 : DhtBase
Inheritance
Dht12
Inherited Members

Constructors

Dht12(I2cDevice)

Create a DHT12 sensor through I2C

public Dht12(I2cDevice i2cDevice)

Parameters

i2cDevice I2cDevice

I2C Device

Dht12(int, int, PinNumberingScheme, GpioController?, bool)

Create a DHT12 sensor

public Dht12(int pinEcho, int pinTrigger, PinNumberingScheme pinNumberingScheme = PinNumberingScheme.Logical, GpioController? gpioController = null, bool shouldDispose = true)

Parameters

pinEcho int

The pin number which is used as echo (GPIO number)

pinTrigger int

The pin number which is used as trigger (GPIO number)

pinNumberingScheme PinNumberingScheme

The GPIO pin numbering scheme

gpioController GpioController

GpioController related with operations on pins

shouldDispose bool

true to dispose the GpioController

Fields

DefaultI2cAddress

DHT12 Default I2C Address

public const byte DefaultI2cAddress = 92

Field Value

byte