TE HTU21D Element

The TE HTU21D element is used to read Ambient Temperature and Humidity.

SECTION FOR EELS ONLY, uncomment for EELS The [name] is a sensor element that can be imported into the Element Toolbox through the Add ElementAdd Elementbutton located in the toolbox from Embedded View.

Element Icon
TE HTU21D Element

Properties

The following properties can be changed for the TE HTU21D element:

Name

The name of the element.

I2C Driver Instance

I2C driver instance to use for communication.

GPIO Driver Instance

GPIO driver instance to use.

TE Weather Shield

This sensor is included on the TE Weather Shield, which requires 3 extra GPIO lines to be used as a “chip select”. If this is set to false, the following 3 properties will be ignored.

Weather Shield CSA

Weather Shield Chip Select A GPIO Pin. Ignored if TE Weather Shield property is set to false.

Weather Shield CSB

Weather Shield Chip Select B GPIO Pin. Ignored if TE Weather Shield property is set to false.

Weather Shield En

Weather Shield Chip Select Enable Pin. Ignored if TE Weather Shield property is set to false.

Triggers

The following triggers are available to execute events from within the TE HTU21D element:

Triggered

Execute an event when the source element connected to the TE HTU21D triggers.

Temperature Read

Execute an event when the temperature is read from the TE HTU21D.

Humidity Read

Execute an event when the humidity is read from the TE HTU21D.

Abilities

The following abilities are available for the TE HTU21D element when its source element triggers:

Trigger

Trigger the element(s) that follow the TE HTU21D element.

Read Temperature

Read the temperature in degrees Celsius.

Read Humidity

Read the humidity in % relative humidity.