A smoke detector is a device that senses smoke, typically as an indicator of fire, and provides an early warning to occupants, allowing for evacuation or extinguishing efforts. It is a critical component of fire safety systems and can significantly reduce the risk of injury or death by alerting individuals to the presence of smoke before a fire becomes unmanageable.