- so is the client definitely sending packets?
- try refactoring the code from your loop into discrete functions
- your I2C clock rate is very high, can you run your sensor at a lower I2C bus speed? At that rate you could be dropping data and then waiting for responses that aren't coming, and that's why the watchdog's triggering