DhtSensor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for