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?