DHT22

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
DHT22 pin, tvar, hvar [,DHT11]
HUMID  pin, tvar, hvar [,DHT11] (alternative name)

Description:
Returns the temperature and humidity using the DHT22 sensor. 
Alternative versions of the DHT22 are the AM2303 or the RHT03 (all are compatible). 
'pin' is the I/O pin connected to the sensor. Any I/O pin may be used. 
'tvar' is the variable that will hold the measured temperature and 
'hvar' is the same for humidity. Both must be present and both must be floating point variables. 
For example: DHT22 dht22pin, TEMP!, HUMIDITY! 
Temperature is measured in ºC and the humidity is percent relative humidity. Both will be measured with a resolution of 0.1. 
If an error occurs (sensor not connected or corrupt signal) both values will be 1000.0. 
Normally the signal pin of the DHT22 should be pulled up by a 1K to 10K resistor (4.7K recommended) to the supply voltage.

Some devices can use hte optional DHT11 parameter to retrieve data from the DHT11

MM170 and MM+ devices can use the HUMID CFUNCTION as an alternative.

 

Last edited: 04 July, 2021