Help resolving a code error- Expected primary expression before '>' token

I am a science teacher who is new to coding and trying to figure some stuff out so I can teach 8th graders some basic coding and circuitry.

I have a Myoware Muscle Sensor and found a lovely tutorial about how to attach it to a servo motor but the provided code has this error and I don't understand how to fix it. I googled the error but was not able to discover the fix on my own.

I'm using an Arduino Uno board and have a Windows 10 computer. I have downloaded Arduino 1.8.9 and then I also tried it on the Arduino Web Editor.

I apologize if I put something in here incorrectly. I'm trying to put in as much detail as possible. I'm not sure if that is the best way to share my sketch. I appreciate your patience.

I keep getting the error message

Expected primary expression before '>' token

Here is a link to the sketch:

Here is the output from the lower console:

/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn arduino:avr:uno -build-cache /tmp -build-path /tmp/575326821/build -verbose -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -prefs -libraries /tmp/575326821/custom -libraries /tmp/575326821/pinned /tmp/575326821/sketch_nov23a

Multiple libraries were found for "Servo.h"

Used: /home/builder/opt/libraries/latest/servo_1_1_5

Not used: /home/builder/opt/libraries/latest/rokitsmart_1_0_9

Not used: /home/builder/opt/libraries/latest/printoo_library_1_0_2

Not used: /home/builder/opt/libraries/latest/evive_2_0_2

Using library servo_1_1_5 at version 1.1.5 in folder: /home/builder/opt/libraries/latest/servo_1_1_5

/tmp/575326821/sketch_nov23a/sketch_nov23a.ino: In function 'void loop()':

/tmp/575326821/sketch_nov23a/sketch_nov23a.ino:22:1: error: expected primary-expression before '>' token

Serial.print(servoPosition);Serial.print("degrees,with EMG:");Serial.println(EMGsig);


exit status 1

Remove the ">" on line 22.

Please read "Read this before posting a programming question" at the top of the forum.

Most people here won't open a link to a sketch. Even on

Your error message is pointing to the problem:

>Serial.print(servoPosition);Serial.print("degrees,with EMG:");Serial.println(EMGsig);


The ">" doesn't belong on this line.

Working result from CREATE editor


That did it! Thank you so much!