A surgical instrument includes an anvil and an elongate channel. The elongate channel includes a plurality of first electrical contacts and a plurality of electrical connectors comprising a plurality of second electrical contacts, wherein the electrical connectors are spring-biased such that a gap is maintained between the first electrical contacts and the second electrical contacts. The surgical instrument further includes a staple cartridge releasably attachable to the elongate channel, wherein the staple cartridge has a cartridge body comprising a plurality of staple cavities, a plurality of staples deployable from the staple cavities into the tissue, and a plurality of third electrical contacts, wherein the attachment of the staple cartridge to the elongate channel moves the electrical connectors causing the second electrical contacts to bridge the gap and become electrically coupled to the first electrical contacts.