https://www.apple.com/airtag/

This pretty well describes how the AirTags work.