add avgADC for bum measurements and fix current