ESP32 I2C for LCD 20x4 Inteface Issue

I found that adding 4.7kΩ external 5V pull-ups to the ESP32's SDA and SCL lines were improving the stability of my I2C connection