void serialEvent(Serial myPort) { // this method is run automatically when the buffer reaches the byte value set in the bufferUntil method String myString = myPort.readStringUntil('\n'); // read the serial buffer println(myString); // print the value of myString if (myString != null); { // if myString is not null,

I tried to run this sketch without the serialEvent method, but that didn't work. So I added that method and things went splendidly from there. I guess there would be two ways to adjust the sensor values so that they can be read as color values. The first way is the way I did it, through the map function. The second would be through the colorMode function, by adjusting the color values to read 0 - 1023.

This sketch uses three potentiometers attached to analog pins 1, 2, and 3. I used such a big screen size because I like the look of the bigger circle, and I felt the smaller circles didn't show the color changes as well.