private void WriteToI2CDevice()
        {
            /*
             * Initialize the FDC1004 capacitance sensor:
             *
             * For this device, we create 3-byte write buffers: ==> this device uses
             * The first byte is the register address we want to write to.
             * The second byte is the contents of the MSB that we want to write to the register.
             * The third byte is the contents of the LSB that we want to write to the register.
             */

            byte[] WriteBuf_MeasurementOneFormat   = new byte[] { 0x1c, 0x00 }; // configs measurement 1
            byte[] WriteBuf_MeasurementTwoFormat   = new byte[] { 0x3c, 0x00 }; // configs measurement 2
            byte[] WriteBuf_MeasurementThreeFormat = new byte[] { 0x5c, 0x00 }; // configs measurement 3

            byte[] WriteBuf_FDC_Config = new byte[] { 0x0D, 0xE0 };             //set to read at 400S/s with repeat and read at measurement #1,#2,#3

            I2CSensor.WriteAddressWord(MEAS_ONE_CONTROL, BitConverter.ToUInt16(WriteBuf_MeasurementOneFormat));
            I2CSensor.WriteAddressWord(MEAS_TWO_CONTROL, BitConverter.ToUInt16(WriteBuf_MeasurementTwoFormat));
            I2CSensor.WriteAddressWord(MEAS_THREE_CONTROL, BitConverter.ToUInt16(WriteBuf_MeasurementThreeFormat));

            I2CSensor.WriteAddressWord(FDC_CONF_CONTROL, BitConverter.ToUInt16(WriteBuf_FDC_Config));
        }