Why does the in-ear detection sometimes not work when using the Xiaomi Buds 5?

The factors about in-ear detection sometimes not working are as follows:
1. If the earbuds are removed for more than 2 minutes while music is playing, the in-ear detection will not function when worn again. This is by design;
2. If the music is paused by touching the touch area on the earbuds, the in-ear detection will not function when the earbuds are worn again. This setup is intentionally designed this way.
To restore functionality, please refer to the following:
1. Place the earbuds back in the charging case, close the lid, wait for 5 seconds, then open the lid and reconnect;
2. If the above steps do not resolve the issue, try resetting the earbuds to factory settings: Place both earbuds in the charging case, open the lid, press and hold the function button for 10 seconds until the indicator blinks in orange alternately, then blinks in white. This completes the factory reset.