dhtmeasure()

Function Definition: dhtmeasure(parameter = "temperature", pin = "D3")

Parameters

NameTypeDescriptionExpected ValuesDefault Value
parameterstringThe parameter required - "temperature" or "humidity""temperature" or "humidity""temperature"
pinstringThe pin of Quarky or the Expansion board where the relay is connected."D3", "A1", "A2", "S1", "S2", "T1", "T2", "T3", "T4", "T5""D3"

Description

The function reports the temperature or humidity from the DHT sensor connected to the selected pin.

There are lots of pins to which the sensor can be connected:

  1. Digital Pin: D3
  2. Analog Pins: A1 and A2
  3. Servo Pins: S1 and S2
  4. Touch Pins: T1, T2, T3, T4, and T5

Example

There are no examples documented for this article.
Table of Contents