John Locke:

An Essay Concerning Human Understanding (Book IV)

Could you be a brain in a vat?