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


void setup(){
  // set the speed at 10 rpm
  myStepper.setSpeed(5);
  //initialize serial port
  Serial.begin(9600);
  //define pins  


#include <Stepper.h>

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


