Arduino Library for Sensirion SHT1x Humidity and Temperature sensors.
Arduino Library for Sensirion SHT1x Humidity and Temperature Sensors. The library block SHT1x reads the relative humidity [%] and temperature [°C] from a SHT1x sensor connected to an Arduino board, DATA pin from SHT1x is connected to digital "Pin 6" and SCK pin to "Pin7". Library block also provides error message.
A sample model is provided to show how to use the library block to read the values from a SHT15 sensor connected to an Arduino Duemilanove and send them over the serial port; a serial terminal is then used to monitor temperature and humidity on a PC.
Note: This library doesn't use the Simulink built-in support for Arduino, it uses the "Embedded Coder Support for Arduino Hardware", it can be downloaded here http://www.mathworks.com/matlabcentral/fileexchange/30277-embedded-coder-support-package-for-arduino
The target supports many Arduino boards like Uno, Mega 2560 and Duemilanove.
NOTE:
Since we are not able to publish executable files (mex) on File Exchange, we need to compile
the S-Function in the library block before use it. Read the "readme.txt" for instructions.
Cite As
Antonio Beltran (2026). Arduino Library for Sensirion SHT1x Humidity and Temperature sensors. (https://www.mathworks.com/matlabcentral/fileexchange/44432-arduino-library-for-sensirion-sht1x-humidity-and-temperature-sensors), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Code Generation > Embedded Coder > Deployment, Integration, and Supported Hardware > Embedded Coder Supported Hardware >
- Simulink > Simulink Environment Fundamentals > Block Libraries >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.2.0.0 | mex32 file removed. |