Measure ambient temperature
Simulink Support Package for Android Devices / Sensors
Get the measurement of temperature in oC from the temperature sensor on the Androidâ„¢ device.
The Ambient Temperature Sensor block outputs
a single-precision scalar value.
Note
During simulations without hardware, this block outputs zeros. See Block Produces Zeros or Does Nothing in Simulation.
Specify how often the block reads the sensor.
Smaller values require the processor to complete the same number of instructions in less time, which can cause task overruns.