Preparing thermal sensors