An adapter assembly includes an elongated body configured to couple to a handle assembly and a loading unit assembly. The adapter assembly includes an oscillator configured to output a voltage signal. A sensor determines a connection status of the loading unit assembly coupled to the adapter assembly based on a change in the voltage signal. The voltage signal includes a rectified voltage output and an induced voltage output and changes in response to the approximation of a winding disposed within a loading unit assembly to the oscillator.