This invention discloses a calibration method, a cleaning device, and a storage medium. The cleaning device includes a sensing device, a suction
pipe, and a light-emitting component. The sensing device and the light-emitting component are disposed on the suction
pipe, and the
light source signal emitted by the light-emitting component passes through the
pipe wall to reach the sensing device. This invention presets a standard value when the suction channel is clean. When the cleaning device is operating, the light-emitting component emits a
light source signal to the sensing device. When the sensing value obtained by the sensing device differs from the standard value, the light-emitting component is adjusted to make the sensing value obtained by the sensing device closer to the standard value. Therefore, when the suction pipe is dirty, the
light source signal of the light-emitting component is adjusted to calibrate and maintain the sensing value obtained by the sensing device near the standard value. When the sensing device detects the dirtiness of the cleaning liquid, it will not make misjudgments due to
dirt on the pipe wall.