Emergency Backup Battery Source

I am in a project where our idea is to install a backup battery pack that powers car door locks only. I need help with a potential wire diagram, computer program or something similar that will turn on the battery when the vehicle is at 5% battery or the low gas indicator comes on.