 }
 
 void loop() {
-  w = map(analogRead(pot)/1.0,0,1023,0.25,3);
+  w = mapfloat(analogRead(pot)/1.0,0,1023,0.25,3);
 
   Serial.print("weight: ");
   Serial.println(w);

int tempo = 78;
float w = 0;

void setup() {
  delay(1000);
  keyboard.begin(DataPin, IRQpin);

    }
    if ((millis() - ii) > (525*v)) {
      digitalWrite(zampaAD,LOW);
      a++;
    }
    if (aa > 10) {
      fine = true;
    }

