There are products claiming to detect cigarette smoke, but I’ve never found anything that works.
The best detector I use is my wife. She has a very sensitive sense of smell and is allergic to cigarette smoke.
Although we have signs stating No Smoking anywhere inside the house and a note that if they need to smoke, they are welcome to use the outside terrace.
We added a note that advises that if they smoke, there will be a cleaning charge imposed.
I’m not sure which part of the phrase “No Smoking” people don’t understand.
Inevitably you will need to clean after a smoker.
We don’t use an ozone generator as used in hospitals as they can be very dangerous.
We use plates of coffee (beans or ground), apple vinegar, and scented candles, (there are also candles that remove smoke odor). If it’s extreme, there is a special paint which removes odors.
We set the smoke alarms to sensitive. If my wife sniffs smoke, I simply go down and knock on the door and catch them red-handed, help them read the “No Smoking” notice, and remind them of the cleaning they’ll need to pay for.
I guess if I was 40 years younger my response would have been, “How dare you smoke cannabis and not invite me”. but we all get old and boring