added snippet code for LSM303