You should test your smoke alarms monthly, by holding down the test button until you hear a sound.
You should also dust your smoke alarms regularly, as electronics work best when clear of dust particles. This goes double for fire detection, as working smoke alarms are vital to alerting your home’s occupants. vacuuming around the alarm is the best way to do this without risking damaging the alarm.