Thanks for the quick reply Chuck.But I guess that with timeout condition the freeze state will not going to happen but the ms5611 can stay for a long time without providing real-time information?I really suspect that is the MS5611 because in setup() it is the first i2c comm established and many times in the startup it does not initialize thus the program just freezes there. The other arduino I believe is working like it should.It will be preferable to use a modded OneWire or try another ms5611, or other solution?If I had an oscilloscope that would be much easy to debug.
I have an extra arduino uno and mega so it will be good to visualize the I2C traffic.Following that link I couldn't find the process of implementing it. It is like installing logic sniffer, upload the sketch to arduino and communicate via serial between arduino and logic sniffer?
This SUMP protocol compatible logic analyzer for the Arduino board supports5 channels consisting of digital pins 8-12, which are the first 5 bits (0-4)of PORTB. Arduino pin 13 / bit 5 is the Arduino LED, bits 6 & 7 are thecrystal oscillator pins.Uncomment CHAN5 below if you want to use the LED pin as an input and have6 channels.On the Arduino Mega board 8 channels are supported and 7k of samples.Pins 22-29 (Port A) are used by default.