float[] processSensorValues(String valString) {
String[] temp = {"0", "0", "0", "0", "0", "0", "0", "0"};
temp = split(valString,"\t");
if(temp == null) {
for(int i = 0; i<8; i++) {
temp[i] = "0";
}
}
float[] vals = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
for(int i = 0; i<8; i++)
{
if(temp != null)
{
vals[i] = float(temp[i]);
}
else
{
vals[i] = 0;
}
}
return vals;
}