Just leave the smoke out and install a beam type detector, the ir beam gets scattered when the smoke is at the ceiling line as long as it is between the transmitter and reciever.