 
 boolean solenoid_valve_open = false;
 float flow_rate_cc_per_sec = 0.0;
-float water_level_buffer=1; //The water level buffer is how much the water level should increase before calculating a new flow rate
+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


float load1_v_out = 0.0;
float load2_v_out = 0.0;
float res_1 = 50350.0; // Measure the value of R1 in voltage divider circuit.
float res_2 = 0.0;

float load_cap = 10000000.0;

  position_sensors();
  fluid_level_sensor();
  film_sensor();
  solenoid_drain_valve();
  analog_index++;
  if (analog_index == number_of_readings) analog_index = 0;
  ////////////////////////////////////////////////////////////////


  tachometer_sensor();
  flow_rate_sensor();

