         avgtmp += measured[i];
         counts++;
     }
-    m1_measured = (avgtmp / counts) * corr;
+    m1_measured = ((avgtmp / counts) >> 2) * corr;
     
     /*
     Serial.println(F("M1 measurements"));

        avgtmp += measured[i];
        counts++;
    }
    m2_measured = (avgtmp / counts) * corr;
    
    /*
    Serial.println(F("M2 measurements"));

    pinMode(M2_ENABLE_PIN, OUTPUT);
    pinMode(M2_PWM_PIN, OUTPUT);

  setpoint = 100;
  myPID.SetOutputLimits(-127, 127);

}
