Main Content

readHumidity

Read the humidity value from the Humidity sensor

Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.

Description

humidity= readHumidity(mysh) returns the relative humidity value read from a Humidity sensor in percentage.

example

Examples

collapse all

You can read humidity from the Humidity sensor.

readHumidity(mysh)
ans =
		36.5456

Input Arguments

collapse all

Connection to a SenseHAT board, specified as a sensehat object.

Output Arguments

collapse all

The humidity value read from the Humidity sensor. The output of this method is double and the unit of measurement for the humidity is percentage relative humidity (%rh).

Extended Capabilities

Version History

Introduced in R2016b