private float ReadCapSen1_1(int RegAddrBuf1, int RegAddrBuf2) { int temp1 = (I2CSensor.ReadAddressWord(RegAddrBuf1)); int temp2 = (I2CSensor.ReadAddressWord(RegAddrBuf2)); byte[] byteData1 = BitConverter.GetBytes(temp1); byte[] byteData2 = BitConverter.GetBytes(temp2); byte[] byteData3 = { byteData2[0], byteData1[1], byteData1[0], 0 }; int CapLabel1Both = BitConverter.ToInt32(byteData3); float FinalCapMeasure = CapLabel1Both / 524288f; return(FinalCapMeasure); }