by alteration of electrical resistance