A smoke detector is a vital fire safety device designed to detect smoke and provide an early warning of a fire by emitting a loud alarm. It plays a crucial role in protecting lives and property by alerting occupants of a building to the presence of smoke, which is often the first sign of a fire