The LiPo Fuel Gauge communicates with your project over I2C, and an alert pin also tells you when the charge has dropped below a certain percentage.