GPS Module not working with Nano Iot

int gpsBaudRate = 9600;  //set this to suit your GPS module

void setup()
{
    Serial.begin(115200);
    Serial1.begin(gpsBaudRate);
}

void loop()
{
    if (Serial1.available())  //if data available from GPS
    {
        Serial.write(Serial1.read());  //print it to the Serial monitor
    }
}