void setup() for (int i=0; i<numSensors; i++) baseline[i] = readSensor(i); // average over 100 samples
void loop() for (int i=0; i<3; i++) float val = analogRead(mqPins[i]); float ratio = val / baseline[i]; if (ratio > 1.15) // 15% rise Serial.print("Flying fish near sensor "); Serial.println(i); delay(500); // debounce mh mq sensor flying fish
April 14, 2026 Subject: Using MQ-2 / MQ-135 sensors to detect transient, moving gas plumes (“flying fish”) Prepared for: Hobbyists, environmental monitoring, and robotics developers void setup() for (int i=0; i<numSensors; i++) baseline[i]
For general “flying fish” (unknown vapor), use MQ-2 . For ethanol‑based flying fish (e.g., drone with alcohol spray), use MQ-3 . void setup() for (int i=0
The combination of MH-MQ sensors and flying fish research demonstrates the power of interdisciplinary approaches, driving innovation and discovery at the intersection of biology, engineering, and environmental science.