Skip to main content

wokwi-dht22 Reference

Digital Humidity and Temperature sensor.

Pin names#

NameDescription
VCCPositive voltage
SDADigital data pin (input/output)
NCNot connected
GNDGround

Attributes#

NameDescriptionDefault value
temperatureInitial temperature value (celsius)"24"
humidityInitial relative humidity value (percentage)"40"

Controlling the temperature#

You can change the temperature and humidity values while the simulation is running. Click on the DHT22 sensor and a small popup window will open. Use the temperature and humidity sliders to change the values. Click "Hide" to close the popup window.

Simulator examples#