DHT i

Command:

DHT i

 

Command Syntax:

READ DHT i

Range:

Temperature reading default is in Celsius

Humidity reading from 0 to 100 %

Describe:

Returns a list consisting of the current temperature, humidity, type of sensor, and last cached read status. The temperature and humidity can be obtained by themselves by appending the TEMPERATURE or HUMIDITY keywords to the end of the command. The type of sensor is indicated by a 1 for a DHT11, and a 2 for DHT22 style sensors. The status values are: 1=OK, 2=Timeout, 3=Checksum/bad reading.

READ DHT i – returns full cached information from last reading the DHT task obtained.

READ DHT i TEMPERATURE – returns latest temperature reading.

READ DHT i HUMIDITY – returns latest humidity reading.

READ DHT n TYPE - return the sensor type used (1=DHT11, 2=DHT22).

READ DHT n STATUS - return the current status of the sensor readings provided. (1=OK, 2=Timeout, 3=Checksum error).

Result:

Return list with current temperature in C, humidity in %, type(1=DHT11, 2=DHT22), and status (type/status only available in full list).

Where the status = 1:OK, =2:Timeout, =3:Checksum.

Type or
Addressable Component:

Sensor

 

DHT i TEMPERATURE

Command:

DHT i TEMPERATURE

 

Command Syntax:

READ DHT i TEMPERATURE

Range:

Temperature reading default is in Celsius

Humidity reading from 0 to 100 %

Describe:

Returns a list consisting of the current temperature, humidity, type of sensor, and last cached read status. The temperature and humidity can be obtained by themselves by appending the TEMPERATURE or HUMIDITY keywords to the end of the command. The type of sensor is indicated by a 1 for a DHT11, and a 2 for DHT22 style sensors. The status values are: 1=OK, 2=Timeout, 3=Checksum/bad reading.

READ DHT i – returns full cached information from last reading the DHT task obtained.

READ DHT i TEMPERATURE – returns latest temperature reading.

READ DHT i HUMIDITY – returns latest humidity reading.

READ DHT n TYPE - return the sensor type used (1=DHT11, 2=DHT22).

READ DHT n STATUS - return the current status of the sensor readings provided. (1=OK, 2=Timeout, 3=Checksum error).

Result:

Returns temperature component.

Type or
Addressable Component:

Sensor

 

DHT i HUMIDITY

Command:

DHT i HUMIDITY

 

Command Syntax:

READ DHT i HUMIDITY

Range:

Temperature reading default is in Celsius

Humidity reading from 0 to 100 %

Describe:

Returns a list consisting of the current temperature, humidity, type of sensor, and last cached read status. The temperature and humidity can be obtained by themselves by appending the TEMPERATURE or HUMIDITY keywords to the end of the command. The type of sensor is indicated by a 1 for a DHT11, and a 2 for DHT22 style sensors. The status values are: 1=OK, 2=Timeout, 3=Checksum/bad reading.

READ DHT i – returns full cached information from last reading the DHT task obtained.

READ DHT i TEMPERATURE – returns latest temperature reading.

READ DHT i HUMIDITY – returns latest humidity reading.

READ DHT n TYPE - return the sensor type used (1=DHT11, 2=DHT22).

READ DHT n STATUS - return the current status of the sensor readings provided. (1=OK, 2=Timeout, 3=Checksum error).

Result:

Returns humidity component.

Type or
Addressable Component:

Sensor