A venting lithium battery releases toxic gas that contains carbon monoxide, so a combined smoke and CO detector mounted near your battery bank can warn you early. I use the SC07-WX myself in my apartment.

X-Sense SC07-MR with SBS50 Base Station
My recommendation for most homes. Interconnected smoke and CO detectors with a replaceable battery, so if one goes off, they all go off. The SBS50 base station extends the range up to 1,700 ft (500 m) and sends an alert to your phone when you're away. The 5 pack includes the base station, with no monthly subscription.

X-Sense SC07-W
Interconnected smoke and CO detectors, so if one goes off, they all go off. This is the only detector on this page without a replaceable battery. Instead, it has a sealed battery that lasts 10 years. There is no smart app, so it's a dumb fire alarm, and you won't get notified through the app when you're away from home. A remote to silence false alarms is sold separately for $15. Sold as a 3 pack.

X-Sense SC07-WX
What I use in my own apartment. A smoke and CO detector with app notifications built in, so no base station is needed. It's sold as a single detector, so buy two 1 packs if you want two, and they interconnect with each other. Ideal when the distance between the detectors and your Wi-Fi router is short. I placed one near my batteries and one near my washing machine.