A real-time control system for a frequency response-based permittivity sensor