An air conditioner, comprising: a casing having an air inlet and an air outlet; an evaporator disposed in the casing; a front panel disposed in front of the casing; and a temperature sensor disposed to a back of the front panel and configured to sense an ambient temperature, characterised in that the air conditioner further comprises an electric element cover disposed to the back of the front panel, wherein an electric element cavity is defined by the electric element cover and the front panel, the electric element cavity is provided with a vent, and the temperature sensor is provided in the electric element cavity, wherein the electric element cover is provided with a grille part configured for defining the vent, wherein the electric element cover comprises: a cover plate having an inner surface facing the front panel and an outer surface opposite to the inner surface; a side wall disposed at an outer circumferential edge of the cover plate, wherein a first accommodating cavity, configured to accommodate an electric element and opened over the inner surface of the cover plate, is defined by the side wall and the inner surface of the cover plate; and a grille housing configured as the grille part and protruding from the outer surface of the cover plate, wherein a second accommodating cavity, separated from the first accommodating cavity and opened over a portion of the grille housing protruding from the outer surface of the cover plate, is defined by the grille housing, the cover plate and the side wall, and the temperature sensor is accommodated in the second accommodating cavity, characterized in that the air conditioner further comprises a housing cover pivotably mounted to the grille housing and configured to open and close the second accommodating cavity. a casing having an air inlet and an air outlet; an evaporator disposed in the casing; a front panel disposed in front of the casing; and a temperature sensor disposed to a back of the front panel and configured to sense an ambient temperature, characterised in that the air conditioner further comprises an electric element cover disposed to the back of the front panel, wherein an electric element cavity is defined by the electric element cover and the front panel, the electric element cavity is provided with a vent, and the temperature sensor is provided in the electric element cavity, wherein the electric element cover is provided with a grille part configured for defining the vent, wherein the electric element cover comprises: a cover plate having an inner surface facing the front panel and an outer surface opposite to the inner surface; a side wall disposed at an outer circumferential edge of the cover plate, wherein a first accommodating cavity, configured to accommodate an electric element and opened over the inner surface of the cover plate, is defined by the side wall and the inner surface of the cover plate; and a grille housing configured as the grille part and protruding from the outer surface of the cover plate, wherein a second accommodating cavity, separated from the first accommodating cavity and opened over a portion of the grille housing protruding from the outer surface of the cover plate, is defined by the grille housing, the cover plate and the side wall, and the temperature sensor is accommodated in the second accommodating cavity, a cover plate having an inner surface facing the front panel and an outer surface opposite to the inner surface; a side wall disposed at an outer circumferential edge of the cover plate, wherein a first accommodating cavity, configured to accommodate an electric element and opened over the inner surface of the cover plate, is defined by the side wall and the inner surface of the cover plate; and a grille housing configured as the grille part and protruding from the outer surface of the cover plate, wherein a second accommodating cavity, separated from the first accommodating cavity and opened over a portion of the grille housing protruding from the outer surface of the cover plate, is defined by the grille housing, the cover plate and the side wall, and the temperature sensor is accommodated in the second accommodating cavity, characterized in that the air conditioner further comprises a housing cover pivotably mounted to the grille housing and configured to open and close the second accommodating cavity.