Try to print TWSR via Serial.print when it is in the infinite loop. For example you may read the register and print it each time it changes. I guess you have some typo in your code.
Try to print TWSR via Serial.print when it is in the infinite loop. For example you may read the register and print it each time it changes. I guess you have some typo in your code.