 
 
 
-  SIGNAL(TIMER0_COMPA_vect) {
-    uint8_t x = digitalRead(input_water);
+SIGNAL(TIMER0_COMPA_vect) {
+  uint8_t x = digitalRead(input_water);
 
-    if (x == lastflowpinstate) {
-      lastflowratetimer++;
-      return; // nothing changed!
-    }
+  if (x == lastflowpinstate) {
+    lastflowratetimer++;
+    return; // nothing changed!
+  }
 
-    lastflowpinstate = x;
-    flowrate = 1000.0;
-    flowrate /= lastflowratetimer;  // in hertz
-    lastflowratetimer = 0;
-  }
+  lastflowpinstate = x;
+  flowrate = 1000.0;
+  flowrate /= lastflowratetimer;  // in hertz
+  lastflowratetimer = 0;
+}
 
 
 

#define input_water 1
#define input_wind 2
#define input_fire A0
#define resistor 10000




  /////////////////////////////////////////////////////////////////////FIRE
 // if ( envoiMessage.metro(10) ) {
    float read_fire;

    read_fire = analogRead(input_fire);

    read_fire = (1023/ read_fire) -1;
    read_fire = resistor / read_fire;

    Serial.print("fire ");
    Serial.println(read_fire);
//  }
  /////////////////////////////////////////////////////////////////////WIND

 // if ( envoiMessage.metro(10) ) {
    float read_wind;

    read_wind = analogRead(input_wind);

    Serial.print("wind ");
    Serial.println(read_wind);
//  }
delay(500);
}


