DhtSensor Class

Definition

DhtSensor supports DHT familly sensors

public class DhtSensor
type DhtSensor = class
Public Class DhtSensor
Inheritance
DhtSensor

Constructors

DhtSensor(GrovePi, GrovePort, DhtType)

Initialize the DHT Sensor class

Properties

DhtType

Get the type of DHT sensor

LastRelativeHumidity

Get the last measured relative humidy from 0.0 to 100.0

LastTemperature

Get the last temperature measured in Celsius

LastTemperatureInFarenheit

Get the last temperature measured in Farenheit

SensorName

Get the name of the DHT sensor

SupportedPorts

Only Digital ports including the analogic sensors (A0 = D14, A1 = D15, A2 = D16)

Value

Get an array of 2 double First is the temperature in degree Celsius Second is the relative humidity from 0.0 to 100.0

Methods

Read()

You need to read the sensorbefore getting the value

ToString()

Returns the temperature and humidity in a formated way

Applies to