Gravity: UART Infrared CO2 Sensor (0-50000ppm) Spikes on reading

It is best to use a single, unbroken wire for each connection, as the more connectors you add, the more unreliable the setup.

Soldered connections are best, if done properly. Soldering tutorial here.