I have designed a low battery detector circuit using low power comparator MCP6541 for a 4.2V Li-ion battery. This circuit checks whether the battery voltage if the battery voltage is lower than 3.5V then it will glow LED. Check the circuit below.

The circuit is working properly but the problem is led is flickering when it is glowing because the battery voltage is not constant it is fluctuating withing 0V- to 0.2V band as per load on the battery. when the battery voltage coming to reference voltage 3.5V due to fluctuation batter voltage sometimes goes below 3.5V sometimes above 3.5V so the led also flickering accordingly.
What I am thinking to put a capacitor across the R4 to minimize the fluctuation but still there chance to flickering. Please suggest me the best way to avoid flickering of LED.
Thank you for advanced.

The circuit is working properly but the problem is led is flickering when it is glowing because the battery voltage is not constant it is fluctuating withing 0V- to 0.2V band as per load on the battery. when the battery voltage coming to reference voltage 3.5V due to fluctuation batter voltage sometimes goes below 3.5V sometimes above 3.5V so the led also flickering accordingly.
What I am thinking to put a capacitor across the R4 to minimize the fluctuation but still there chance to flickering. Please suggest me the best way to avoid flickering of LED.
Thank you for advanced.