What analog pins are you using and does it still occur if you change them?
try to not use an external power supply and see if that makes it work. I just got light sensor / temp sensor / ping and lcd working properly by not using an external power supply, but by using the arduino 5v. I was also previously getting 1023 (=5v) reading before I switched. do you have a photo of your setup?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16