@chiribas10 The connection between the RPi GND and the 12V GND must be a solid connection. GPIO GND pin may not offer a solid connection. The "pads" on the mounting holes of the RPi are GND. The 12V GND can be connected to any of this mounting hole but must not be longer than 12 inches. Make sure that your connection is not shorting any other part of the RPi.