Code to read serial data from balance and perform calculations for xylem hydraulics