I am new to LSM6DS3 inertial module, I am trying to use it with my arduino mega 2560, in SPI mode ,but in trouble with Z & Y axis output of the accelero meter. X axis output respond well.
Already tried to read the output raw registers with and without reading the STATUS Register, but the result remains same. I bought the breakout board from Sparkfun and made necessary changes for using this in SPI mode. Attaching my arduino code with this post.