I am trying to make a datalogger with an Arduino, that should measure the voltage and current comming out of a small solar panel. When I measure the voltage and current using a multimeter, I get a result of around 3.4 volts, and a current of around 122 microamperes. An acquaintance told mee that, since I want to measure both values at once, I could just connect a resistance in series with the solar panel, so that I can measure the voltage and then use ohm's law to find the current, since I know the resistance.
In this case I am using a 10 ohm resistance, but that means that when I measure the voltage and get a value of 3.4 volts I should be reading a current of 0.34 Amperes. However, my multimeter reads 124 microamperes. What am I doing wrong? How can I fix this?
Edit: As suggested, I tried measuring in parallel. When I connected the setup shown below, I measured 1,5 v and about 3 microamperes without the resistance, and as soon as I connected it, it dropped to 0. What did I do wrong? I tried to connect as suggested.