receiving serial data using Arduino Nano serial pins

unsigned int D2=2;
unsigned int D1=1;
SoftwareSerial port(D1,D2);

You're creating a SoftwareSerial on pin 1 and 2 and later on activate the internal USART which uses pin 0 and 1 for RX/TX. Do you find the conflict yourself?