A low battery is the most common cause of a smoke detector malfunctioning. You're going to hear chirps when the battery dies, regardless of whether the alarm is hardwired or not.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.