Problem in interface with ardunio

i am facing the problem with the microcontroller ardunio an this program
tell me how to interface the ardunio with the bolt iot i am using this program whiich is not working

Please share the code here so we can help debug it

void setup() {
// put your setup code here, to run once:
Serial.begin(9600); //Begin Serial at 9600
Serial.setTimeout(50); //Timeout serial if readString is unavailable
}

void loop() {
// put your main code here, to run repeatedly:
String inString = “”;
if (Serial.available() > 0) {
// get incoming String
inString = Serial.readString(); //Read input string from bolt
Serial.print(inString); //Send same string back to bolt
}
}

Hi,

What are the commands you ran on bolt?

relay and other sensors

above given program is the same for all ardunio board. if diffirent please tell me program for the ardunio uno R3 modal.when we uplode the program in the ardunio the error code show .
Arduino: 1.8.1 (Windows 7), Board: “Arduino/Genuino Uno”

Sketch uses 3158 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 194 bytes (9%) of dynamic memory, leaving 1854 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
An error occurred while uploading the sketch

This happen when i am trying to interface the bolt iot to the ardunio .
Please sir help me ,how to interface the ardunio uno with the iot bolt.
i am highly thankfull to you

Hi,

The error messages are not from the code, there seems to be a problem in uploading the code to your arduino, it means that the PC is trying to communicate to the arduino but the arduino is not responding to the sync commands from the PC.

Please check arduino forums to debug the same.