Start by using the serial monitor in the arduino IDE. Go to file > examples > communication and look at the serial examples.