added VMC calculation to readSensor()