Skip to product information
1 of 4

Temperature & Humidity

Temperature & Humidity

SKU:AX22-0011

  • Read the temperature and humidity of the room.
  • DHT11 sensor: 0 to 50 °C and 20 to 90 % RH.
  • One data pin: the 4.7 kΩ pull-up is already on board.
  • 22 × 22 mm AX22 module that plugs straight into AX22 ports.
  • Made for dashboards, smart lamps and environmental loggers.
  • Breadboard Compatible design with 4x Mounting Holes.
Regular price $7.49
Regular price Sale price $7.49
Sale Sold out

In stock

View full details

Details

A temperature and humidity sensor built around the DHT11. It measures 0 to 50 °C to within ±2 °C and 20 to 90 % relative humidity to within ±5 %, with a new reading once a second.

It reports both values over a single-wire digital protocol on one GPIO pin. The 4.7 kΩ pull-up the data line needs is on the board, so no extra parts are required. It runs at 3.3 V or 5 V.

The board is 22 × 22 mm with four ⌀2.7 mm mounting holes. It plugs into a breadboard or any AX22 port, and works in the Arduino IDE with the DHT sensor library, in MicroPython and in MicroBlocks.

Component datasheet (opens in a new tab)

No wiring. No coding.

Temperature & Humidity pushes straight into any AX22 port. Then say what you want in Axiometa Studio, which writes the code and uploads it to your board.

Pinouts

Temperature & Humidity pinout

Resources

Temperature & Humidity AX22-0011
PCB front
Temperature & Humidity — PCB front
PCB back
Temperature & Humidity — PCB back
ax22-0011.ino
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>

#define DHTPIN 14

#define DHTTYPE DHT11

DHT_Unified dht(DHTPIN, DHTTYPE);

uint32_t delayMS;

void setup() {
  Serial.begin(9600);
  dht.begin();
}

void loop() {
  delay(100);
  sensors_event_t event;
  dht.temperature().getEvent(&event);
  if (isnan(event.temperature)) {
    Serial.println(F("Error reading temperature!"));
  } else {
    Serial.print(F("Temperature: "));
    Serial.print(event.temperature);
    Serial.println(F("°C"));
  }
  // Get humidity event and print its value.
  dht.humidity().getEvent(&event);
  if (isnan(event.relative_humidity)) {
    Serial.println(F("Error reading humidity!"));
  } else {
    Serial.print(F("Humidity: "));
    Serial.print(event.relative_humidity);
    Serial.println(F("%"));
  }
}