Happily there is a solution in the form of capacitive sensor probes ... unexpectedly it uses a 555 configured as an astable oscillator. This feeds an RC low pass filter of which the capacitor ...
Positioned close to the bob is a copper plate; the bob and the plate form an air-dielectric variable capacitor that controls the frequency of a simple 555 ... of the capacitive sensor [Alex ...