I am creating a project using arduino nano, ESP8266 and DPS310 sensor. I uploaded the code for the same but the serial monitor wasn't displaying

Is your serial monitor set at 9600 bauds?
Does your code compile? Was it correctly uploaded to the Nano?
Did you test any other code that uses Serial Monitor with this Nano before?
Can you share pictures of your actual circuit?