ADD:battery sensor code, need test with TI board