by measuring variations in capacitance or inductance of electrical elements