added 2 extra lines
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3);
void setup()
{
Serial.begin(115200);
Serial.println("Start color sensor");
// set the data rate for the NewSoftSerial port
mySerial.begin(38400);
mySerial.print('C');
}
void loop()
{
if (mySerial.available())
{
char c = mySerial.read();
Serial.print("<"); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<< line added
Serial.print(c, DEC);
Serial.print(">"); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<< line added
if (c == ',') Serial.println(); // split the R G and B
if (c == 13) Serial.println(); // extra newline
}
}
please give it a try