esphome-docs/components/sensor/htu21d.rst

69 lines
1.9 KiB
ReStructuredText
Raw Normal View History

HTU21D | Si7021 | SHT21 Temperature & Humidity Sensor
=====================================================
2018-05-13 11:37:02 +02:00
2018-11-14 22:12:27 +01:00
.. seo::
:description: Instructions for setting up HTU21D temperature and humidity sensors.
:image: htu21d.jpg
:keywords: HTU21D
The HTU21D Temperature & Humidity component allows you to use HTU21D, Si7021 and SHT21 sensors with
ESPHome. The :ref:`I²C Bus <i2c>` is required to be set up in your configuration for this sensor to work.
Example sensors:
- (`Adafruit <https://www.adafruit.com/product/1899>`__)
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
.. figure:: images/htu21d-full.jpg
:align: center
:width: 50.0%
2018-05-13 11:37:02 +02:00
HTU21D Temperature & Humidity Sensor.
2018-05-13 11:37:02 +02:00
.. _Adafruit: https://learn.adafruit.com/adafruit-htu21d-f-temperature-humidity-sensor/overview
2018-06-01 18:10:00 +02:00
.. figure:: images/temperature-humidity.png
:align: center
:width: 80.0%
2018-05-13 11:37:02 +02:00
.. code-block:: yaml
2018-05-13 11:37:02 +02:00
# Example configuration entry
sensor:
- platform: htu21d
temperature:
2023-08-21 02:16:18 +02:00
name: "Temperature"
2018-05-13 11:37:02 +02:00
humidity:
2023-08-21 02:16:18 +02:00
name: "Humidity"
heater:
name: "Heater"
2018-05-13 11:37:02 +02:00
Configuration variables:
2018-10-12 16:33:22 +02:00
------------------------
2018-05-13 11:37:02 +02:00
2023-08-21 02:16:18 +02:00
- **temperature** (*Optional*): The information for the temperature sensor.
All options from :ref:`Sensor <config-sensor>`.
2018-06-01 18:10:00 +02:00
2023-08-21 02:16:18 +02:00
- **humidity** (*Optional*): The information for the humidity sensor.
All options from :ref:`Sensor <config-sensor>`.
2018-05-13 11:37:02 +02:00
- **heater** (*Optional*): The information for the heater sensor.
All options from :ref:`Sensor <config-sensor>`.
2019-01-06 18:56:14 +01:00
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the sensor. Defaults to ``60s``.
The heater may be enabled to help correct the reading; see the datasheet for more information.
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
See Also
2018-10-12 16:33:22 +02:00
--------
2018-05-13 11:37:02 +02:00
2018-06-01 18:10:00 +02:00
- :ref:`sensor-filters`
- :doc:`absolute_humidity`
2018-06-01 18:10:00 +02:00
- :doc:`dht`
- :doc:`dht12`
- :doc:`hdc1080`
- :doc:`sht3xd`
2019-05-12 22:44:59 +02:00
- :apiref:`htu21d/htu21d.h`
2018-08-24 22:44:01 +02:00
- `i2cdevlib <https://github.com/jrowberg/i2cdevlib>`__ by `Jeff Rowberg <https://github.com/jrowberg>`__
- :ghedit:`Edit`