write receiving state to serial monitor and characters received