The wire color code is helpful in preventing errors ... Red wires are generally used to hardwire smoke detectors. White Wires ...
First on the electrical wire color code is black ... If you’re in a newer home with hardwired smoke detectors, a red wire connects them, so if one goes off, they all go off.