socket stream with  calibration button