expo-sensors provides various APIs for accessing device sensors to measure motion, orientation, pressure, magnetic fields, and step count.
|Android Device||Android Emulator||iOS Device||iOS Simulator||Web|
expo install expo-sensors
If you're installing this in a bare React Native app, you should also follow these additional installation instructions.
import * as Sensors from 'expo-sensors';
} from 'expo-sensors';
For more information, please see the documentation for the sensor you are interested in: