The sensors on the Edge Gateway provide measurements on pressure, relative humidity and temperature, and motion.
Table 1. Sensor typesProvides the sensor types of your Edge Gateway.
Sensor type
Description
ST Micro HTS221
Relative humidity and temperature
sensor
ST Micro LNG2DMTR
Motion G-sensor—Accelerometer
ST Micro LPS22HB
Pressure sensor
Retrieve the raw data from the sensors by running the following commands. Then, apply the formula in the table to convert the data collected into measurements such as relative humidity and temperature.
Retrieving raw data from sensors
To query sensor devices, run the following command.
$ cat /sys/bus/iio/devices/iio:device*/name
hts221 <-- device0, Humidity and temp.
lng2dm_accel <-- device1, G-sensor
lps22hb <-- device2, Pressure
To retrieve data from the humidity and temperature sensor, run the following commands.