How to send a thank you email to all attendees who were present?

You can choose the email template 'Thank you' when sending emails (Event-> Email-> Create Email Campaign).
 
With 'Add Email Recipient' you can then set the filter 'Checked in', then all participants who have been checked in will be selected.