Several of the Arduino boards have an Inertial Measurement Unit (IMU) embedded in them. In order to access the readings of these sensors you can use one of our libraries. Since there are several of them, this can be confusing, so in order to use the right one, please follow this instructions:
Check your board's IMU model in our store, under the "Tech specs" tab of the bord you are working with.
Install & include the corresponding library in the IDE & sketch respectively:
Arduino_ LSM6DS3is the one to use in boards like the Arduino Uno WiFi Rev2 and Nano 33 IoT boards
Arduino_LSM9DS1is the one to use in boards like the Arduino Nano 33 BLE.