DHTSensor Class

Reports temperature and relative hudity values using a DHT20 sensor. This feature is only available in the Education Edition of the RoboTx API.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 2.0.0
C#
public sealed class DHTSensor : ContinuousSensor
Inheritance
Object    ContinuousSensor    DHTSensor

Properties

Humidity Gets current relative humidity reading as a percentage.
IsEnabled Returns true if the sensor has been enabled.
(Inherited from ContinuousSensor)
IsReady Returns true if the sensor values are available for reading.
(Inherited from ContinuousSensor)
Temperature Gets current temperature reading in degrees celsius.

Methods

Disable Stops the DHT sensor reporting values.
(Overrides ContinuousSensorDisable)
Enable Enables the DHT sensor to report temperature and humidity values.
(Overrides ContinuousSensorEnable)

See Also