TMP102 Temperature Sensor
R2026bRead ambient temperature in degree Celsius using TMP102 temperature sensor
Since R2024b
Libraries:
Raspberry Pi Blockset /
Sensors /
Environmental Sensors
Description
Use the TMP102 Temperature Sensor block to read ambient temperature values from a TMP102 sensor, in degree Celsius.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
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.
"raspberrypienvironmentalsensorslib/TMP102 Temperature Sensor"
Example: add_block("raspberrypienvironmentalsensorslib/TMP102 Temperature Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2024b
