Solar battery

For a project o have to read in the battery % of a battery that is bekng constantly charged by solar power and discharged. It is a 12v battery and it will have a current of max 12A. How do i read in how much mah there is over and send it to the serial? Is there a module that will help me do this?

This may be of interest to you