The RC circuit discussed in the previous slide can be interfaced with a dual comparator module with the SR Latch feature found on newer PIC Microcontrollers. The voltage across the sensor capacitor Vcs is used as the inverting input to both comparators.