I'm working on a project where I need to collect data from a load cell using the serial monitor. I can collect this data fine, the problem is that it comes with some random letters before and lbs after. I want to change this data from a char value to an int so I can just collect the numerical data and use that. The problem is I cannot find a way to print the data other than using the char variable type. Can anyone help? I will list the section of code that I use to collect this below.
while (THRUST.available()){
Serial.print(char(THRUST.read()));
}
10 posts - 3 participants