 int close_valve_at_cm_level = 5; //2 inches
 
 boolean solenoid_valve_open = false;
-String flow_rate_cc_per_sec = "0.0";
+double 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
 
 void solenoid_drain_valve(){

int positionSignal2= A1;  //J10 Connector
double position1 = 0;
double position2 = 0;
String position1_mm = "0.0";
String position2_mm = "0.0";

void position_sensors(){
  position1 = analogRead(positionSignal1);
  position2 = analogRead(positionSignal2);
  position1_mm = String(position1 * 12.7 / 1023);
  position2_mm = String(position2 * 12.7 / 1023);
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

  film_sensor();


    int i;
  if (millis() - last_print_time >= PRINT_DELAY){


    rpm_calculation();
    flow_rate();
    shaft_temp();
