sorry for this dumb question, im new to arduino. i want to calculate how much user shld drink based on their weight. currently the weight is in string. is it possible for me to convert to float/ integer.
"
String weight;
float goal;
void setup() {
Serial.begin(9600);
delay(2000);
Serial.println("What is your weight?");
}
void loop() {
if(Serial.available()){
weight = Serial.readStringUntil('\n');
Serial.println("your weight is " + weight + "!");
}
}"