A Low-Cost Smart Measurement System for Resistive (Bridge) or Capacitive Sensors