readTemperature
Read the temperature value from the Humidity sensor or the air pressure sensor
Syntax
Description
returns the temperature read from the Humidity sensor. This is the default syntax of the
function.temperature = readTemperature(mysh)
Note
To generate C/C++ code for this function, you must have an Embedded Coder® license.
returns the temperature read from the Humidity sensor that you specify as an extra
argument.temperature = readTemperature(mysh,usehumiditysensor)
returns the temperature read from the Air Pressure sensor that you specify as an extra
argument.temperature = readTemperature(mysh,usepressuresensor)
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016b