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 board you are working with.
Install the corresponding library and include it in your sketch:
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.