How heat, smoke, and carbon monoxide sensors work together to prevent emergencies