digitalRead() condition in 'while' loop not triggering

Also forgot to mention that it is an ESP32 Development Board that I am using.