Well, if you don't know how to replace a battery in a smoke detector, that explains why it's chirping at you. Good grief, it's not that hard! Get a small step ladder and look at the thing. It'll either have a little "hatch" you can pop open for accessing the battery, which will be marked as such, or you untwist it to get to the battery after you pull it down, and again, it'll tell you which way to twist to remove it. If the battery door is on the side that faces the wall, then the wires will just be attached by a plug that you can pull out, replace the battery, then plug back in and reattach the smoke detector to the ceiling.
In the place I used to rent, they had a hard-wired smoke detector system that was the WORST I've ever experienced...if one smoke detector had a low battery, they ALL chirped. I had to go through every one in the place to find the one causing the problem. For a while, I didn't have the time, patience or number of batteries required to check them all, so just yanked them all out.
I'm STILL trying to find a hardwired smoke detector that doesn't have a glowing/blinking LED light in it. The smoke detectors in my bedrooms all have masking tape over the lights, because I can't figure out how anyone could sleep with one of those things glowing/blinking all night. I don't mind if it blinks if the battery is low to let me know it's time to replace it, but the rest of the time, I don't want any stupid light on. I still haven't found one yet.
The advantage of the hard-wired smoke detectors is that they will all go off if there IS a real fire setting them off, so even if it's down in the basement, the one in my bedroom will be set off and I will more likely wake up in time than if it was just going off in the basement. Oh, right, and besides one that doesn't have lights in it, I want one that has a reset button that shuts them all up with one press (i.e., when I'm cooking bacon and for some reason, even when they are nowhere near the kitchen, the smoke detectors insist on going off from just the tiniest bit of grease splatter in the kitchen, requiring me to leave the stove unattended to turn on fans to shut the dang things up...that's more than annoying when I haven't even burnt anything and it's just greasy food being cooked that sets it off).