readTemperature
Read one sample of temperature from sensor
Description
[
returns one sample of the temperature measured in degree Celsius along with the
tempReadings,timestamp] = readTemperature(sensorobj)timestamp. Timestamp is optional.
Note
The
readTemperaturefunction is available for theLSM6DS3,LSM6DS3H,LSM6DSL,LSM6DSM,LSM6DSR,LSM6DSO,LPS22HB,LSM303C,HTS221,ICM20948,ADXL345, andLIS3DHsensors.To generate C/C++ code for this function, you must have an Embedded Coder® license.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021a