started work on creating thread for programming the arduino