Is it a law to have smoke detectors and carbon monoxide testers? What are the requirements?