unsigned long tiempo;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
tiempo=millis();
}
void loop() {
unsigned long tiempoPasado=millis()-tiempo;
if (tiempoPasado > 2000){
Serial.println("tiempo cumplido");
tiempo=millis();
}
delay(10); // this speeds up the simulation
}