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
single-precision scalar value.
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.