A surgical device includes an end effector and a handle assembly. The end effector includes a body portion and a tool assembly disposed at a distal end of the body portion. The tool assembly is insertable into tissue and includes an anvil assembly, a cartridge assembly, and a sensor disposed on an outer surface of the anvil assembly or the cartridge assembly for measuring a preselected mechanical property of the tissue. The handle assembly is operably coupled to the end effector. The handle assembly includes a power-pack including a controller circuit board configured to receive sensor data of the sensor corresponding to the preselected mechanical property and to control a function of the end effector in response to the sensor data.