DhtSensor.TryReadDht(Int32, Int32, Temperature, RelativeHumidity) Method
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.
Special function to read DHT sensor, if supported
public bool TryReadDht (int pinNumber, int dhtType, out UnitsNet.Temperature temperature, out UnitsNet.RelativeHumidity humidity);
member this.TryReadDht : int * int * Temperature * RelativeHumidity -> bool
Public Function TryReadDht (pinNumber As Integer, dhtType As Integer, ByRef temperature As Temperature, ByRef humidity As RelativeHumidity) As Boolean
Parameters
- pinNumber
- Int32
Pin Number
- dhtType
- Int32
Type of DHT Sensor: 11 = DHT11, 22 = DHT22, etc.
- temperature
- UnitsNet.Temperature
Temperature
- humidity
- UnitsNet.RelativeHumidity
Relative humidity
Returns
True on success, false otherwise
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