I have a room that was changed from a living room to a bedroom...I know it needs smoke det....Must it be hardwired or may I used battery operated only ?