Do we need smoke detector or fire alarm or both?

we need both if you want maximum safety