How to check if email bounced back

Hello friends!
I have one question for you. How do I check if the email bounced back.
Currently, my implementation is that I wait 5 seconds and check if there is a new email with the sender email in body.
Is there a better way to do this?