AT664 thermocoupler module analog input configuration

Have you switched on local declaration in Project → Settings?

image

Or just declare the variable in the .var file, which might be the more common solution.