Skip to main content

Temperature and Humidity

DHT sensors are a simple way to read ambient temperature and humidity from your project.

Add DHT sensor

Attach a DHT-style temperature and humidity sensor to a digital pin.

Add DHT20 sensor

Attach a DHT20 sensor that communicates over I2C.

Read temperature

Read the current temperature from the selected DHT sensor.

Read humidity

Read the current humidity from the selected DHT sensor.