Error 2 means that the device is not detected. It could be an issue with powering it, wiring, pull-up resistors.
What's the Arduino board in the picture? If it's supposed to have a pinout compatible with the Arduino Uno, then I think you are using the wrong pins. Check the pinout here. Also, you may need to add 4.7k pullup resistors from each of SCL and SDA to 5V.
The Trill-like board you have looks like an early protoype (does it say "2018 Rev B"? ) that was given away for free. What are the pin labels on it? can you send a close-up? I also believe it may have been flashed with the address set to 0x18 (i.e: 24). Once you fixed the wiring, try editing the code so that it specifies the address manually:
int ret = trillSensor.setup(Trill::TRILL_CRAFT, 0x18);
and see if you have more luck.
Is the purple thread going through the screw holes conductive?In that case it is probably shorting some of the sensing pads to ground , which is undesirable as it may affect the behaviour of the device.