outsider:
@odometer:
Your way:Sketch uses 3,888 bytes (12%) of program storage space. Maximum is 30,720 bytes.
Global variables use 222 bytes (10%) of dynamic memory, leaving 1,826 bytes for local variables. Maximum is 2,048 bytes.My way:
Sketch uses 2,732 bytes (8%) of program storage space. Maximum is 30,720 bytes.
Global variables use 206 bytes (10%) of dynamic memory, leaving 1,842 bytes for local variables. Maximum is 2,048 bytes.For the same result.
I don't know: does the OP then want to use that pH for any further calculations?