Several of the Arduino boards have Inertial Measurement Units (IMUs) 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 oin 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.