ESP8266 based Wemos D1 Mini - led lights on button press but no print to serial


It took me a while (days) but I figured out that the Wemos D1 doesn't have internal pullups on every pin.
A 2 pin momentary push button is wired to pin D4 (with internal pullup resistor) and Ground and causes the built in led to light when pressed. It should also print to the serial console but this doesn't happen. The second serial print statement for when no button is pressed does display though. I should say that the first print still doesn't happen with the print limit removed from the second statement also.
Can anyone help me with this please?

const int doorbell = D4; // This one has an internal pullup. Most dont on this one...
const int led = LED_BUILTIN;
int doorbellState = 0;
int releasedPrint = 0;
long lastdoorbellDebounceTime = 0;  // the last time the output pin was toggled
long doorbellDebounceDelay = 50;    // the doorbellDebounce time; increase if the output flickers

void setup() {
  // put your setup code here, to run once:

void loop() {
  // put your main code here, to run repeatedly:

  //filter out any noise by setting a time buffer
  if ( (millis() - lastdoorbellDebounceTime) > doorbellDebounceDelay) {
if (doorbellState==HIGH)
      Serial.println("doorbell pressed!");
  lastdoorbellDebounceTime = millis(); //set the current time
  lastdoorbellDebounceTime = millis(); //set the current time
   if (releasedPrint == 0) 
    Serial.println("doorbell released!");

Where is your digitalRead to interrogate the momentary push button?

Ah. Thanks very much for pointing that out, I have it working now...
I also had to change doorbellState from == HIGH to == LOW for it to detect the right way around.