An optical sensor includes a light-emitting element for directing light to an image, a light-receiving element for receiving light reflected by the image, a normal detection optical path for allowing the light emitted by the light-emitting element and the light reflected from the image to follow a normal detection optical path during normal operation, a calibration reflecting plate disposed inside the optical sensor for reflecting light from the light-emitting element when sensitivity is calibrated, a calibration optical path for allowing the light emitted by the light-emitting element to follow a calibration optical path to the light-receiving element when the emitted light is reflected by the calibration reflecting plate, and a first optical function element disposed in the calibration optical path and switchable between a light permeating state, in which the light passes therethrough, and a light intercepting state, in which the light is blocked, when voltage is applied.