Read the updated serial input basics if it's text based.
Also contains an example to convert text to integer. If you really need a float instead of an integer, use atof instead of atoi.
Read the updated serial input basics if it's text based.
Also contains an example to convert text to integer. If you really need a float instead of an integer, use atof instead of atoi.