For a project I am trying to read data from a Bosch BNO055 with the I2C connection every 20 ms. For reading data at the correct frequency I am using a timer (I tried MsTimer2, TimerOne, TimerThree, milis() and elapsedMilis). However everytime I call the function Wire.endTransmission for the I2C connection, the program seems to stop. Does somebody know why this happens? And/or does know a solution to this problem? Thanks!