An indoor unit of an air conditioner comprises an intelligent sensor used for scanning activities of human bodies. The intelligent sensor consists of an intelligent eye component, a transmission part, a rotation driving motor, an expansion driving motor and a transmission gear, the intelligent eye component is provided with a sensor, the transmission part is provided with a rack, the intelligent eye component is connected with an output shaft of the rotation driving motor, the rotation driving motor is disposed on the transmission part, the rack is meshed with the transmission gear, and the transmission gear is connected with an output shaft of the expansion driving motor. The intelligent eye component consists of the sensor, a mounting part, a transmission disc and a sensing hood, a flat shaft hole is arranged in the transmission disc, the transmission disc is connected with the output shaft of the rotation driving motor by the flat shaft hole and connected with the mounting part, the sensor is disposed on the mounting part, the sensing hood is arranged on the mounting part, and the sensor is positioned between the sensing hood and the mounting part. The indoor unit of the air conditioner has the advantages that the indoor unit is simple and reasonable in structure, flexible in operation, low in manufacturing cost, easy in assembly and attractive in appearance.