An ice maker comprising: A bottom wall, the ice maker being configured to be mounted on an ice bin such that the bottom wall is positioned generally above a top of the ice bin, the bottom wall defining a sensor opening; an ice formation device supported above the bottom wall, the ice formation device being configured to form pieces of ice and to release the pieces of ice so that the pieces of ice fall from the ice formation device past the bottom wall through a drop opening into the ice bin; and a time-of-flight sensor configured to: emit, at a first time, an optical pulse signal through the sensor opening toward the ice bin, detect, at a second time, a photon of the optical pulse signal that returns to the time-of-flight sensor through the sensor opening after reflecting off of one of a floor of the ice bin and ice in the ice bin, and determine a duration between the first time and the second time, the duration being usable to determine an amount of ice in the ice bin; wherein the time-of-flight sensor comprises a sensor enclosure having an interior chamber and a lower wall defining a window opening and a window pane mounted on the lower wall across the window opening; wherein the time-of-flight sensor further comprises a sensor board including a light source configured to emit the optical pulse signal through the window pane; wherein the sensor enclosure comprises an integral board mount configured to mount the sensor board in the interior chamber at a precise vertical spacing distance from the window pane. A bottom wall, the ice maker being configured to be mounted on an ice bin such that the bottom wall is positioned generally above a top of the ice bin, the bottom wall defining a sensor opening; an ice formation device supported above the bottom wall, the ice formation device being configured to form pieces of ice and to release the pieces of ice so that the pieces of ice fall from the ice formation device past the bottom wall through a drop opening into the ice bin; and a time-of-flight sensor configured to: emit, at a first time, an optical pulse signal through the sensor opening toward the ice bin, detect, at a second time, a photon of the optical pulse signal that returns to the time-of-flight sensor through the sensor opening after reflecting off of one of a floor of the ice bin and ice in the ice bin, and determine a duration between the first time and the second time, the duration being usable to determine an amount of ice in the ice bin; wherein the time-of-flight sensor comprises a sensor enclosure having an interior chamber and a lower wall defining a window opening and a window pane mounted on the lower wall across the window opening; wherein the time-of-flight sensor further comprises a sensor board including a light source configured to emit the optical pulse signal through the window pane; wherein the sensor enclosure comprises an integral board mount configured to mount the sensor board in the interior chamber at a precise vertical spacing distance from the window pane. emit, at a first time, an optical pulse signal through the sensor opening toward the ice bin, detect, at a second time, a photon of the optical pulse signal that returns to the time-of-flight sensor through the sensor opening after reflecting off of one of a floor of the ice bin and ice in the ice bin, and determine a duration between the first time and the second time, the duration being usable to determine an amount of ice in the ice bin; wherein the time-of-flight sensor comprises a sensor enclosure having an interior chamber and a lower wall defining a window opening and a window pane mounted on the lower wall across the window opening; wherein the time-of-flight sensor further comprises a sensor board including a light source configured to emit the optical pulse signal through the window pane; wherein the sensor enclosure comprises an integral board mount configured to mount the sensor board in the interior chamber at a precise vertical spacing distance from the window pane.