Hi, I am working on an Arduino project where I have to measure the water level, but unfortunately, I can't have my Arduino 5V and GND wires where the sensor is located at. What I am trying to do is to provide the 5V and GND for the sensor from the external 5Volt power source, since the wires of the power source are already where the sensor is going to be located at. I also connected the GND of 5Volt power supply to Arduino GND and the sensor seems to work just fine, but I am not sure if this is safe. Here is a rough diagram of my connections.
Thank you.