voltage = avergearray(pHArray, ArrayLenth)*5.0/1024;
I have a temperature and pH sensor connected to my Arduino Uno Wifi with a Base Shield 2.0. On the Base Shield, there is a switch for 3.3v and 5v. If the switch is towards 3.3v, i will have a normal pH value(Water: about 7.0) but my temperature value will be low as 17Degrees(Suppose to be around 32).If i switch to 5V on my Base Shield, My pH value will increase up to around 9-10 pH value while my Temperature will be correct. How can i adjust so that i will have both value correct?