int avail; int potvalue1; void setup() { Serial.begin(9600); // Default communication rate of the Bluetooth module Serial1.begin(9600); } void loop() { if(Serial1.available() > 0){ // Checks whether data is comming from the serial port potvalue1 = Serial1.read(); // Reads the 1st data from the serial port } Serial.println(potvalue1); delay(1000); }