An electronic expansion valve (30, 80), comprising a valve body, a valve core assembly, an electronic control portion and a stator assembly, wherein the valve core assembly comprises a valve port which is arranged in a valve seat, a valve core and a rotor assembly, and the valve core is movable relative to the valve seat to change opening of the valve port; the electronic control portion is configured to control the stator assembly, and the rotor assembly is configured to drive the valve core to move; and the electronic expansion valve (30, 80) further comprises a sensor, the sensor is a temperature sensor or a pressure sensor or a temperature and pressure sensor, the electronic control portion comprises an electronic control board, and the stator assembly and the sensor are electrically connected with the electronic control board; characterized in that the sensor comprises a sensor body, a sensing head and a pin, the sensing head and the pin are respectively arranged at two ends of the sensor body, and the pin is electrically connected with the electronic control board directly; the electronic control portion further comprises a cover body, the cover body is provided with an inner cavity, the electronic control board is arranged in the inner cavity; the cover body comprises an upper housing and a lower housing, and the upper housing and the lower housing are separately formed and are fixedly connected with each other; and the lower housing is provided with a through hole, and at least the pin is capable of passing through the through hole; and wherein the lower housing is fixed to the stator assembly by injection molding, the electronic control portion and the stator assembly are arranged side by side on a same side of the valve body, the electronic control board is perpendicular to the sensor, and the sensor is parallel to a central axis of the valve core. the valve core assembly comprises a valve port which is arranged in a valve seat, a valve core and a rotor assembly, and the valve core is movable relative to the valve seat to change opening of the valve port; the electronic control portion is configured to control the stator assembly, and the rotor assembly is configured to drive the valve core to move; and the electronic expansion valve (30, 80) further comprises a sensor, the sensor is a temperature sensor or a pressure sensor or a temperature and pressure sensor, the electronic control portion comprises an electronic control board, and the stator assembly and the sensor are electrically connected with the electronic control board; characterized in that the sensor comprises a sensor body, a sensing head and a pin, the sensing head and the pin are respectively arranged at two ends of the sensor body, and the pin is electrically connected with the electronic control board directly; the electronic control portion further comprises a cover body, the cover body is provided with an inner cavity, the electronic control board is arranged in the inner cavity; the cover body comprises an upper housing and a lower housing, and the upper housing and the lower housing are separately formed and are fixedly connected with each other; and the lower housing is provided with a through hole, and at least the pin is capable of passing through the through hole; and wherein the lower housing is fixed to the stator assembly by injection molding, the electronic control portion and the stator assembly are arranged side by side on a same side of the valve body, the electronic control board is perpendicular to the sensor, and the sensor is parallel to a central axis of the valve core.