This code is from the SoftwareSerial example folder. I've changed RX/TX ports to the right ones, which works on my other project file in the earlier version of Arduino. I'm 100% sure that this is not a hardware problem since the other project is working and receiving data from my serial device.
"Goodnight moon!" prints to Serial output but I'm not able to receive anything from mySerial.
SoftwareSerial mySerial(8, 9);
// set the data rate for the SoftwareSerial port
void loop() // run over and over