1. An apparatus, comprising: a capacitive sensor including a transmit electrode and a receive electrode, wherein the receive electrode is capacitively coupled with the transmit electrode; a signal generator coupled with the transmit electrode and configured to generate an induced current waveform at the receive electrode by applying a transmit signal to the transmit electrode; a demodulation circuit coupled with the receive electrode, wherein the demodulation circuit is configured to output a rectified current based on the induced current waveform; and a compensation circuit coupled with the demodulation circuit, wherein the compensation circuit is configured to add a compensation current to the rectified current to generate a compensated current waveform.