In an image forming device, a method of stapling using a stack height measurement cycle performed by a stack height sensor assembly mounted adjacent a media staging area for holding a job, the stack height sensor assembly having a reversible motor assembly for driving an insertion assembly in an extension and a retraction direction with respect to the media staging area, the insertion assembly including a translatable plunger having a single sensor mounted adjacent a top thereof and a probe translatably mounted thereto, the sensor having an output signal that changes to a first state and to a second state when the sensor is actuated and deactivated, respectively, and the stapler mounted adjacent to the media staging area, the method of stapling comprising:
- receiving a request for stapling a job including a media stack;
- calibrating the stack height sensor assembly by performing a measurement cycle when the media staging area is empty to determine a travel range TR;
- determining whether or not the job is ready for stapling in the media staging area, and when it is determined that the job is ready for stapling, performing a stack height measurement cycle to determine a distance D to a top of the media stack;
- calculating a stack height H by subtracting the distance D from the travel range TR;
- determining whether or not the stack height H is less than or equal to a maximum stack height, and, when it is determined that the stack height H is less than or equal to a maximum stack height, actuating the stapler to staple the job.