HTS221 Humidity Sensor
Measure relative humidity and temperature from HTS221 sensor
Simulink Support Package for Arduino Hardware / Sensors
The HTS221 Humidity Sensor block measures relative humidity and ambient temperature using the HTS221 humidity sensor interfaced with the Arduino® hardware. This sensor comprises of a sensing element to measure the relative humidity and temperature.
You can also select an output data rate for the measured values in the block.
If you are using Arduino Nano 33 BLE Sense hardware, which always includes an embedded sensor, reading data from a breakout board containing HTS221 sensor is not supported.
Humidity — Relative humidity as measured by HTS221 sensor
The block outputs the relative humidity in percentage (%).
This output port appears only if you select the Humidity (%) parameter.
Temperature — Temperature measured by HTS221 sensor
Temperature (in ℃) measured by HTS221 sensor connected to Arduino board.
This output port appears only if you select the Temperature (℃) parameter.
Status — Status of pressure and temperature measurements
Status of pressure and temperature measurements, specified as a 1-by-2 vector.
0 indicates that the data read is new,
indicates that the data read is not new, and
-1 indicates that the
corresponding output is not selected.
This output port appears only if you select the Status parameter.
Humidity (%) — Set output port for reading humidity
on (default) |
Select this parameter to set Humidity as one of the output ports.
Temperature (℃) — Set output port for reading temperature
on (default) |
Select this parameter to set Temperature as one of the output ports.
Status — Set output port for obtaining status
off (default) |
Select this parameter to set Status as one of the output ports.
Output data rate (ODR) — Rate at which humidity and temperature data is sampled
1 Hz (default) |
7 Hz |
Select the output data rate at which humidity data is sampled.
Sample time — Time interval to read data
-1 (default) | positive integer
Specify how often this block reads the data from the HTS221 sensor. When you set this parameter to -1, Simulink determines the best sample time for the block based on the block context within the model.
Introduced in R2021a