 }
 
 //const float calibration = 2280.f; // replace once prototype is made
-const float calibration = 4400.f;
+const float calibration = 154.f;  // came from measured known weight
+
 void setup()
 {
   pinMode(LED_PIN, OUTPUT);

const char pageEnding[]="</body>\
</html>";

char result[10];

const float Filling_weight = 0.5f;  // to be changed
const float Pickup_weight = 2.0f; // to be changed

void handle_weight()
{
  String filename;
  
  float weight = scale.get_units(5);
  if(weight < Filling_weight){
    filename = "/Empty.html";

 File file = SPIFFS.open(filename, "r");
 size_t sent = server.streamFile(file, "text/html");
 file.close();
 digitalWrite(LED_PIN, HIGH);
}

void handleCalib()
