Detection by smoke detectors: Airplane bathrooms are equipped with sensitive smoke detectors, which are designed to detect any signs of smoke or fire. When a person vapes in the bathroom, the vapor produced can trigger the smoke detectors, setting off alarms and alerting the flight crew.