LCD blank screen, sometimes only display some white blocks

I'm a newbie in this kind of area. So I just worked on some arduino based digital thermometer and when I turn it on, the lcd only display blank screen, and sometimes it shows white blocks when i change the potensiometer

I use 3 feet potensiometer, the left one connect to positive, right one connect to ground, and the middle ond connect to V0

ketik atau tempel kode di sini

Hi! Welcome to the Forum!

This might not be happening if the blue and the white wires are connected at the same lane of the breadboard (see below).

Is there any change in the LCD brightness when you turn the potentiometer from one side to the other?

Just a quick side note: always better use LCD with I2C interface, as it makes everything easier to handle and simpler cabling, requiring less (a few) pins, and includes contrast trimmer.

You can just either buy an I2C backpack and solder it to this very display, or buy an LCD display with its I2C already soldered. See HERE.