If you have a digital lock with a dead battery, there are a few ways that you can open it. One way is to use a 9-volt battery. This will work if the digital lock is an electromagnetic lock. Another way is to use a screwdriver to manually override the locking mechanism. Finally, if you have the keypad code, you can enter it and open the door even if the battery is dead.