Sensors with external power supply

Do you have the external power supply ground connected to your sensor ground and also connected to your UNO ground? If not, you will have issues, possibly like this.