16x2 LCD Displaying 1's and 0's when doing an analog read

Hie guys. I have been using a 16x2 LCD to display my analog read using an old Arduino Uno which i then gave to a friend. My problem is that now I have bought a new Arduino uno and 16x2 LCD but when i do an analog read it gives me for example 5V reads 11111111 instead of 0-1023 i was used to. How to I rectify this problem

You rectify the problem by fixing your code.

If you want help doing that then you will have to supply your code first.

Don