Main Content

Ambient Temperature Sensor

Measure ambient temperature


Simulink Support Package for Android Devices / Sensors

  • Ambient Temperature Sensor block


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.


During simulations without hardware, this block outputs zeros. See Block Produces Zeros or Does Nothing in Simulation.


Sample time

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.

Version History

Introduced in R2014a