DHT22AM2302 temperature and humidity sensor
Temperature and humidity, delivered as a checked digital frame.
DHT22, commonly identified as AM2302, measures temperature and relative humidity and sends both readings through a single timed data connection. This page uses Aosong’s AM2302 reference for the bare four-lead sensor; connector boards and cable assemblies can use different pin arrangements. The white vented housing exposes the sensing element to surrounding air. Three connections are needed: supply, data and ground. Leave the fourth contact, NC, open. An external pullup lets the controller and sensor take turns driving the data line. Read the two measurement words, validate the checksum, then convert their integer values into degrees Celsius and percent relative humidity. Wait at least two seconds between requests. Keep the vents clear and separate the sensor from warm electronics so the displayed reading represents the air around it.
