aht30 temperature humidity sensor
In Stock
Price: KSH 500.00

AHT30 Temperature and Humidity Sensor Overview

The AHT30 sensor is a high-precision, reliable sensor used for measuring temperature and humidity. Its compact design and I2C interface make it ideal for various applications, including weather monitoring, HVAC systems, and industrial automation.

Key Features:

  • High accuracy and long-term stability
  • Measurement Range: 0-100% RH, -40°C to 85°C
  • Compact size and low power consumption
  • Interface: I2C (2-wire)
  • Applications: Environmental monitoring, smart homes, and more

Pin Configuration:

  • VCC: Power supply (3.3V or 5V)
  • GND: Ground
  • SDA: Serial Data Line (I2C)
  • SCL: Serial Clock Line (I2C)

Sample Code:

#include 
#include 

AHTxx aht(AHTXX_ADDRESS_X38, AHT1x_SENSOR);  // Using 0x38 I2C address

void setup() {
    Serial.begin(9600);
    Wire.begin();
    if (!aht.begin()) {
        Serial.println("Failed to initialize AHT30");
    } else {
        Serial.println("AHT30 Initialized");
    }
}

void loop() {
    float temperature = aht.readTemperature();
    float humidity = aht.readHumidity();
    Serial.print("Temperature: ");
    Serial.print(temperature);
    Serial.println(" °C");
    Serial.print("Humidity: ");
    Serial.print(humidity);
    Serial.println(" %");
    delay(2000);
}
        

Additional Information:

Thanks to its precise and stable readings, the AHT30 sensor is widely adopted in various smart devices and IoT applications. Plus, with its simple I2C interface, integration into your project is a breeze.

Pro tip: "Using an AHT30 is like having a meteorologist on your project team—accurate and always ready to report!"

🔥RELATED PRODUCTS🔥

🔗 HIMASTORES PRODUCTS