HTS221 Humidity Sensor
R2026bLibraries:
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
MBED Based Sensors
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32L475VG-Discovery (B-L475E-IOT01A)
STM32 Microcontroller Blockset /
Sensors /
Environmental Sensors
Simulink Support Package for Arduino Hardware /
Sensors
Description
The HTS221 Humidity Sensor block measures relative humidity and ambient temperature using the HTS221 humidity sensor interfaced with the STM32 Processors. 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.
Examples
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stmnucleosensorslib/HTS221 Humidity Sensor"
"stm32l475vglib/HTS221 Humidity Sensor"
"stm32Environmentalsensorslib/HTS221 Humidity Sensor"
"arduinosensorlib/HTS221 Humidity Sensor"
Example: add_block("stmnucleosensorslib/HTS221 Humidity Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2025a
