I got it working now to the point where it sees the output properly. Its just a bit out of alignment.
#include <SoftwareSerial.h>
SoftwareSerial portOne(2, 3); // software serial #1: TX = digital pin 2, RX = digital pin 3
String stuff1=""; // string to hold input
void setup()
{
Serial.begin(9600); // Start the hardware serial port
portOne.begin(9600); // Start software serial port
}
void loop()
{
if (portOne.available()>0) // Read serial input
{
int inChar = portOne.read();
if(isDigit(inChar)); //convert byte to char and add to string
{
stuff1 += (char)inChar;
}
if (inChar == '\n') // if you get a new line print string then the value
{
Serial.println (stuff1.toInt());
// Serial.print ("String: ");
Serial.println (stuff1);
stuff1 = ""; // clear string for new input
}
}
}
Thanks