Test all smoke alarms at least once a month. If it does not work replace the battery. If that does not work purchase a new smoke alarm.
Fire extinguishers should have an inspection tag dated within the last twelve months.
Landlords should be notified in writing if your smoke alarm does not work. Your landlord has 10 days to repair the problem.