Foreigners staying in Thailand for more than 90 consecutive days must report their current address to immigration.
https://immigration.go.th/en?page_id=1666
90-Day Immigration Report
Track 90 days from your entry into Thailand