Class TKPotentiometer has no member named 'read'
As soon as I finished writing the question, it came to my mind that perhaps I misspelled something, so I looked for a file in the Menu's sketchbook that I could load.

With my surprise, I found the same exact code as I posted, with a little difference:

pot.read() was substituted with pot.get()