Serial.println

This is my code:
int pin = 15;
int rel = 13;

void setup() {
// put your setup code here, to run once:
pinMode(pin, INPUT); //15 = van NodeMCU
pinMode(rel, OUTPUT);
Serial.begin(115200);
Serial.println();
}

void loop() {
// put your main code here, to run repeatedly:
int val = digitalRead(pin);
Serial.println(val);
if (val = 0) {
Serial.println("Zero");
}
delay(1000);
}

In the serial monitor I see:
15:48:52.266 -> 0
15:48:53.260 -> 0
15:48:54.256 -> 0
15:48:55.251 -> 0
15:48:56.246 -> 0
15:48:57.273 -> 0
15:48:58.268 -> 0
15:48:59.263 -> 0

Why isn't Zero printed?
Has it something to do that the time is in front of the 0.
I can't get rid of the time.

Thank you for your help.

Yvonne

 if (val = 0) {

BONG !
= is used for assignment
== is used for comparison

Thank you so much. That's the solution. It works.

Yvonne