   // Set the state
   state = newState;
   // Notify the Pi
-  Serial.println(state);
+  Serial.print(state);
 }
 
 //resets the turntable


#include <Stepper.h>

const int stepsPerLittleRevolution = 200;  //rotates the little gear one revolution
const int stepsPerBigRevolution = 2*stepsPerLittleRevolution; //rotates the big gear one revolution



    }
 //sets the state
 state = 1; 
 Serial.print(state);
}
