how can i improve my code?

  valold = digitalRead(meterA);
  nextUpdate = millis() + cycleTime; 
  pinMode(meterA, INPUT);

Read from the pin, and then make it an input. Novel approach.