twi.c - I2C requestFrom issue

We are trying to use the Adafruit_MLX90614 library with the MLX90614 sensor.

We are using the mlxtest example as a test case.

We are using the Arduino 1.8.12 IDE with the Arduino megaAVR Boards version 1.8.6 and the Adafruit MLX90614 library version 1.0.2.

After the Wire.requestFrom call in Adafruit_MLX90614.cpp to read the sensor data, the TWI0.STATUS variable in twi.c does not seem to be set for reading data from the sensor. It seems to be set to 0x72.

If we hardcode it to TWI_RIF_bm (0x80), we get the expected return value of reading three bytes from the sensor.

Any pointers or suggestions with respect to tracking down how to resolve this issue would be appreciated.

Update 20200423:

Addition:
Values given for TWI0.MSTATUS are the values in TWI_MasterInterruptHandler.

Correction:
TWI0.STATUS should be TWI0.MSTATUS.

this card is giving you some problems.
perhaps the libraries are not suitable for the new processor.
in my project, I can recognize the MLX90614 sensor correctly at the address 0x5A. when I go to read the data, I always get the maximum value. I have tried all the libraries present but nothing.