An adapter assembly, for connecting a surgical device to an electromechanical handle assembly, includes a cavity and a seal. The cavity is configured to receive a pin connector assembly of an electrical assembly of the electromechanical handle assembly. The seal is disposed at least partially within the cavity and is configured to reduce an amount of fluid able to contact the electrical assembly of the electromechanical handle assembly.