void setup(){
  Serial.begin(115200);
  pinMode(2, OUTPUT);
}

void loop(){
  int cpuUsage = ESP.getCpuFreqMHz();
  int memoryUsage = ESP.getFreeHeap();
  long uptime = millis() / 1000;

  Serial.println(ESP.getCpuUsage());
  delay(1000);
}