 
 void loop() {
 
-  int scale = map(analogRead(0), 0, 1023, 0, 5);
-  int len = 500;
+  int scale = map(analogRead(0), 0, 1023, 0, 4);
+  int len = analogRead(5) + 50;
   float t1 = 220;
   float t2 = 246.94;
   float t3 = 277.18;

  }
  if (scale == 1) {

    len = 500;
    t1 = 261.63;
    t2 = 293.66;
    t3 = 329.63;


  if (scale == 0) {

    t1 = 220;
    t2 = 246.94;
    t3 = 277.18;
