1--- 2title: DeviceMotion 3description: A library that provides access to a device's motion and orientation sensors. 4sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-47/packages/expo-sensors' 5packageName: 'expo-sensors' 6iconUrl: '/static/images/packages/expo-sensors.png' 7--- 8 9import APISection from '~/components/plugins/APISection'; 10import { APIInstallSection } from '~/components/plugins/InstallSection'; 11import PlatformsSection from '~/components/plugins/PlatformsSection'; 12 13`DeviceMotion` from **`expo-sensors`** provides access to the device motion and orientation sensors. All data is presented in terms of three axes that run through a device. According to portrait orientation: X runs from left to right, Y from bottom to top and Z perpendicularly through the screen from back to front. 14 15<PlatformsSection android emulator ios simulator web /> 16 17## Installation 18 19<APIInstallSection /> 20 21## API 22 23```js 24import { DeviceMotion } from 'expo-sensors'; 25``` 26 27<APISection packageName="expo-device-motion" /> 28