In the article, the authors evaluate the computational thinking skills according to gender of a group of male and female students of industrial engineering and systems engineering from universities located in the Andean region of Peru; the five key skills were evaluated: abstraction, decomposition, generalization, algorithmic design, and evaluation. To strengthen computational thinking, activities related to agriculture, livestock, the environment, safety, and education were proposed, which are of interest to the community where the students live. The research methodology followed is quasi-experimental of the post-test type with intentional non-probabilistic sampling. During the development of the activities, the students used microcontrollers, sensors, and actuators; thus, they also used block-based programming to implement hardware and software prototypes. The results have shown, according to the inferential analysis, that there are no significant differences between male and female students in any of the computational thinking skills. These results were due to the educational strategy applied in the development of STEM activities, which focused on solving real problems in the student community and generated the same enthusiasm in female and male students compared to other activities that only generated motivation in male students. © 2023 by the authors.