# Kernel driver aht10

_Peios Kernel / Hardware and drivers / Hardware monitoring_

> Supported chips:

<a id="rst-kernel-driver-aht10"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

Supported chips:

> - Aosong AHT10/AHT20
>
>   Prefix: 'aht10'
>
>   Addresses scanned: None
>
>   Datasheet(AHT10):
>
>   > Chinese: [http://www.aosong.com/userfiles/files/media/AHT10%E4%BA%A7%E5%93%81%E6%89%8B%E5%86%8C%20A3%2020201210.pdf](<http://www.aosong.com/userfiles/files/media/AHT10%E4%BA%A7%E5%93%81%E6%89%8B%E5%86%8C%20A3%2020201210.pdf>) English: [https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf](<https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf>)
>
>   Datasheet(AHT20):
>
>   > English: [http://www.aosong.com/userfiles/files/media/Data%20Sheet%20AHT20.pdf](<http://www.aosong.com/userfiles/files/media/Data%20Sheet%20AHT20.pdf>)
>
> - Aosong DHT20
>
>   Prefix: 'dht20'
>
>   Addresses scanned: None
>
>   Datasheet: [https://www.digikey.co.nz/en/htmldatasheets/production/9184855/0/0/1/101020932](<https://www.digikey.co.nz/en/htmldatasheets/production/9184855/0/0/1/101020932>)

Author: Johannes Cornelis Draaijer &lt;[jcdra1@gmail.com](<mailto:jcdra1@gmail.com>)&gt;

<a id="rst-description"></a>

## Description

The AHT10/AHT20 is a Temperature and Humidity sensor

The address of this i2c device may only be 0x38

<a id="rst-special-features"></a>

## Special Features

AHT20, DHT20 has additional CRC8 support which is sent as the last byte of the sensor values.

<a id="rst-usage-notes"></a>

## Usage Notes

This driver does not probe for AHT10/ATH20 devices, as there is no reliable way to determine if an i2c chip is or isn't an AHT10/AHT20. The device has to be instantiated explicitly with the address 0x38. See [Documentation/i2c/instantiating-devices.rst](/kernel/hardware/i2c/instantiating-devices.md) for details.

<a id="rst-sysfs-entries"></a>

## Sysfs entries


<table>
<tbody>
<tr>
<td>


temp1_input

</td>
<td>


Measured temperature in millidegrees Celsius

</td>
</tr>
<tr>
<td>


humidity1_input

</td>
<td>


Measured humidity in %H

</td>
</tr>
<tr>
<td>


update_interval

</td>
<td>


The minimum interval for polling the sensor, in milliseconds. Writable. Must be at least 2000.

</td>
</tr>
</tbody>
</table>
