Skip to main content
Digital Humidity and Temperature sensor.

Pin names

VCC
Power
Positive voltage
SDA
Digital I/O
Digital data pin (input/output)
NC
Not Connected
Not connected
GND
Ground
Ground

Attributes

temperature
string
default:"24"
Initial temperature value (celsius)
humidity
string
default:"40"
Initial relative humidity value (percentage)

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.
If you are trying to read this sensor from the ESP32, use the “DHT sensor library for ESPx” library. Other DHT22 libraries may not work reliably on the ESP32. You can use this example project as a starting point.

Simulator examples

Build docs developers (and LLMs) love