GPIO


Read DHT11 and DHT22 Temperature and Humidity Sensor

run_dht *type *GPIOpin *obj

*type = DHT Sensor model (11 or 22)
*GPIOpin = Raspberry GPIO pin
*obj = nameID

export_dht *obj *var *option

*obj = nameID
*var = output variable
*option = "humidity" or ""

Example

# use DHT11 Sendor in pin BCM 18
# store results in variable
# -------------------------------
dht_run 11 18 tempRoom
#
# export temperature:
export_dht tempRoom myVarRoom_Temp
# export humidity:
export_dht tempRoom myVarRoom_Hum humidity
#


Powered by Sgneep.com