Solar power monitoring with Raspberry Pi
Your R1 is connected to GND and will not measure anything. You probably want something like this:



This will work if you do not require one end of the load to be connected to ground. In that case, the sensing resistor has to be moved to high side and needs additional circuitry.