Table of Contents

Class Dht21

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

Temperature and Humidity Sensor DHT21

public class Dht21 : DhtBase
Inheritance
Dht21
Inherited Members

Constructors

Dht21(int, PinNumberingScheme, GpioController?, bool)

Create a DHT22 sensor

public Dht21(int pin, PinNumberingScheme pinNumberingScheme = PinNumberingScheme.Logical, GpioController? gpioController = null, bool shouldDispose = true)

Parameters

pin int

The pin number (GPIO number)

pinNumberingScheme PinNumberingScheme

The GPIO pin numbering scheme

gpioController GpioController

GpioController related with operations on pins

shouldDispose bool

True to dispose the Gpio Controller