void setup(){ Serial.begin(115200); String s = "213"; int i = s.toInt(); Serial.println(i); } void loop() { }