I am dividing voltage of a 9V battery to 3V for a Rasperry Pi GPIO. I have the ground connected to the end of the resistors, so it is back to 9V when I connect it to the Pi's ground pin. Is it ok to have the ground at 9V?
simulate this circuit – Schematic created using CircuitLab