LIS2DH12 Accelerometer Library for Arduino Compatible with ESP32 Arduino framework and ESP-IDF + Arduino Framework as well. See examples for usage.