I have a nicla sense ME IMU sensor and I want to evaluate the various sensitivity range of the accelerometer?
Does anyone have an idea how to change the acceleration range parameter in Arduino?
Or any sample code that I can refer to?
I tried to search and found something but still, I cannot get it how to implement it on the program.
Yes, you need to modifiy the BoschSensorte.cpp and call the apis defined in bhi2.c to add new features such as this one (changing the range).
You could post an request on the official github page of nicla-sense-me-fw, and ask for a feature addition like this.
or alternatively you could push your change to the upstream and get it approved eventually.