adds sendData function to be able to communicate with Arduino