The present invention relates to an optical sensor comprising a first light receiving element connected between an input terminal of an operating voltage and an output node and operating depending on incident light through a light receiving node; and a first capacitor circuit unit connected between the output node and a ground, wherein the first capacitor circuit unit performs a charging operation when the first light receiving element is in an ON state and performs a discharging operation when the first light receiving element is in an OFF state.