In a hardwired alarm system, the battery is found in the main control panel, which is usually located in a closet. There will be a red wire and a black wire connected to the battery. Unplug both wires from the existing battery and plug them back into the new battery. Be sure to connect the red wire to the red terminal of the battery and the black wire to the black terminal of the battery.