Main Content

Humidity Sensor

Measure relative air humidity


Simulink Support Package for Android Devices / Sensors

  • Humidity Sensor block


Get the relative ambient air humidity measurement as a percentage (%) from the humidity sensor on the Android™ device.

The data type of the block output data is single.


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