Man has smoke detector to thank