I am using adcin to measure the voltage on my 12 v battery, when the battery gets to low i activate my battery charger with a small relay. Now the problem is as soon my charger start charging my battery the adcin now reads 12.6 v which it think my battery is full charge but it is not. I need to find away to isolate my battery and my charger voltages so even when the charger is on the adcin can read the true volts in my battery. Those anyone have a idea or as experienced this before.

Any advice would be appreciated.