get data from textfield to send over serial