   print2(lcd, calibration.time_remaining(t));
 }
 
-void process_input (int input, CalibratedInput& calibrated_input, Smoothed& smoothed_input, LiquidCrystal& lcd)
-{  
-  // Map the input to a calibrated range of values.
-  input = calibrated_input(input);
-  
-  // Smoothing the input to avoid flickering in the lcd.
-  int smooth_input = int(smoothed_input(input));
-  
+void render_input (int input, LiquidCrystal& lcd)
+{
   lcd.setCursor(6,0);
-  print3(lcd, smooth_input);
+  print3(lcd, input);
 }
 
 LiquidCrystal lcd(7, 6, 8, 9, 10, 11);

#include <LiquidCrystal.h>
#include <EEPROM.h>

#define GAS_INPUT A0
#define CALIBRATE_BUTTON 2
#define CALIBRATION_DURATION 10 // seconds
#define SMOOTHING_FACTOR 0.9
#define STATE_HEADER 0xcafebabe

void read_state (CalibratedInput& calibrated_input)

      write_state(calibrated_input);
    }
  }

  // Output.
  int calibrated_gas = calibrated_input(raw_gas);
  render_input(calibrated_gas, lcd);
}
