Reading busy bit of 1602A lcd
The pin D7 must be read while E is high, so the LCD is actually driving the bus.
Now the code just pulses E high and low, and LCD is not driving the bus, so reading D7 will only read high because of the internal LCD pull-ups.