int stopBeingLimited; //create a varable named stopBeingLimited void setup() { Serial.begin(9600); } void loop() { int sensor = analogRead(A0);//get data from the analog pin stopBeingLimited = map(sensor,482,890 ,19,180); Serial.write(stopBeingLimited); // Write the data to the serial communication port // Serial.println(stopBeingLimited); // show the val data in the serial monitor. DONT USE serial write and serial Print AT THE SAME TIME delay(20); // Wait 20 milliseconds }