It is a further object of the present invention to provide an apparatus and method for use in an automatic transaction machine, for detecting with a sensing device the thickness of sheet media being dispensed or received, the sensing device including a pulsed radiation source, a synchronized radiation detector and a discriminator which is both frequency and phase sensitive.