#include "SoftwareSerial.h" SoftwareSerial mySerial(5,6); char strtest[4]; void setup() { // put your setup code here, to run once: pinMode(0, OUTPUT); pinMode(1, OUTPUT); pinMode(2, OUTPUT); pinMode(3, OUTPUT); pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); // connect serial ports mySerial.begin(9600); while (!mySerial){ } } void loop() { // put your main code here, to run repeatedly: // read serial char current = mySerial.read(); // create an array of the string information in serial int availableBytes = mySerial.available(); for (int index=0; index