Axis Remapping for BHI160B on ESP32-S3 (Arduino Library)

The sensor offers the opportunity to select from a number of different axis remappings, as described in the data sheet and the companion document linked in the data sheet. Look through the possibilities and pick the appropriate one, otherwise read and carefully follow the instructions in the companion document.