Dress politely which means, at the very least, covering your knees and shoulders. In reality much of it is common sense and to an extent, doing as the Thais do. If you’re not Buddhist you won’t be expected to carry out any of the religious aspects of the visit, but obviously keep in mind that local people aren’t there to provide you with photo opportunities.