I'm trying to figure out the best way to measure the value of a capacitor in a circuit and if the value is out of spec, give feedback. The circuit would have some way of knowing what it's supposed to read and what the tolerance of the cap is. Would a microcontroller be best suited for this or is there a way I can do it in the analog domain?