Or just using voltage pickups like every system that monitors battery voltage ever, or about a dozen other very simple solutions.