The TM 30 is a form in Thailand that requires landlords to register foreigners living in their property with the immigration office. This is part of the Thai government's effort to keep track of foreign residents. For more detailed information, refer to the linked post.