Can't get If and else statement to work right, using DHT11 Sensor

Remove the quotes from the if statement. "t" does NOT mean the contents of variable t.

Try a Serial.println("t") and then Serial.println(t) if you really don't understand the difference.

Steve