Hardware setup for calibration and sensor reading