AHT10 temp and humidity sensor

I am stuck trying to figure out what to do. I downloaded the appropriate libraries for the ADAFruit AHT10 sensor and connected it via I2C bus. When I run the code it works twice giving proper output and then gives random characters. Please help!!

Did you try to reset your Arduino?

yes, no change

Read the pinned post re 'How to get the most from the forum'. CLUE: What you posted is not useful.

Obvious
Screenshot 2025-06-14 at 13.07.14

I'm not saying you are not right to point this out, but...

You wouldn't get anything if the baud rate was wrong.

Yes, I was thinking something happened that, besides causing his problem, also reset the monitor baud rate. However, just in case, I figured it best to point it out anyway.
Without being able to see al the code it's a wild guess.