Stop in for a cup of coffee

We just had a chirping smoke detector, is backed up by battery. Put a new 9 volt in it, started chirping again 3 hours later, bad batteries, threw out 5 "new"