An electrical engineer explains how smoke detectors work, and how to reduce the chances of a false positive.