    * 10.flowrate
    * 11. posistion1_mm
    * 12. position2_mm
+   * 13. Irms
    * */
     receive_FFT();
     Serial.println(data);

     //Serial.println(water_level_delta);
    // Serial.println(time_delta/1000);
     flow_rate_cc_per_sec = ( water_level_delta ) / (time_delta/1000.0);
  
     //set the last calculation references
     flow_calc_water_level_cm = water_level_cm;
     calc_time_ms = millis();
    }
   }
  


boolean solenoid_valve_open = false;
float flow_rate_cc_per_sec = 0.0;
float water_level_buffer=1.0; //The water level buffer is how much the water level should increase before calculating a new flow rate

void solenoid_drain_valve(){
   //Start the drain if the water level is too high
