Patent ID: 7581806

Claim:
A liquid-ejecting apparatus comprising: a tray having a hole; a mark section provided in an area adjacent to the hole; a boundary section located between the hole and the mark section; a sensor detecting the boundary section; and a controller executing control of liquid ejection based on liquid ejection data, wherein the liquid-ejecting apparatus determines a reference position in the hole on the basis of the boundary section and ejects liquid on the basis of information including the reference position, wherein the boundary section is determined on the basis of a threshold and a voltage obtained by the sensor, wherein the threshold is calculated on the basis of the voltage obtained by the sensor at the boundary section, wherein the threshold is set such that the reference position can be accurately determined even if the voltage is influenced by noise, wherein the threshold is calculated by adding or subtracting a predetermined value to or from the voltage obtained by the sensor at the mark section.