The invention relates to a sensor for measuring the direct solar radiation transmittance under different vegetation canopies, and the sensor provided by the invention comprises an upper canopy sensor and a lower canopy sensor, wherein the upper canopy sensor and the lower canopy sensor are connected through wireless communication; the upper canopy sensor is arranged at the upper parts or outsides of the vegetation canopies; the lower canopy sensor is arranged at the lower parts of the vegetation canopies; the shape of the upper canopy sensor is a rectangle and three light intensity sensor units are additionally arranged on the common wireless sensor network measuring nodes in a vegetation structure parameter measuring device based on a wireless sensor network; the shape of the lower canopy sensor is a long rod-shaped box; and the lower canopy sensor comprises a light intensity sensor unit, a threaded rod, a spring, a waterproof bayonet, a lower canopy sensor box body, a cable signal connector, a knob, a lower canopy sensor box cover, an eight-core cable and a front-end box cover, and the relative position of the 9 components is adjustable. The sensor provided by the invention has the advantages of low manufacturing cost, low energy consumption, wide application range and wide application prospects in the technical fields of agriculture and ecology.