Look at the datasheet for your uC, often the A/D converters have a relatively low input impedance, like only a couple of kiloohms. You may need to put a buffer after that capacitor before it goes to your microcontroller.
Also, if your microcontroller has a analog comparator input that may work better in this application.