Patent attributes
In a medium conveying device, a projector projects light, a projection light amount of the light changes, at every fixed time, to a first projection light amount and a second projection light amount less than the first projection light amount, a receiver receives the light projected from the projector, a processor determines, at fixed sampling timings, whether a reception light amount of the receiver is at a first reception light level or a second reception light level smaller than the first reception light level, determines, when the reception light amount alternately changes to the first reception light level and the second reception light level, that a medium is not present on a conveying path, and determines, when the reception light amount is fixed to either the first reception light level or the second reception light level, that the medium is present on the conveying path.