This research analyzes the effects of a teaching sequence based on the STEM approach on the learning of quantities and measurements in cycle 3. Based on a comparison between two groups of students (STEM sequence vs. traditional teaching), the results show a more marked progression of skills in the group having built and programmed an automated greenhouse. The study highlights the contributions of contextualization, manipulation and the project approach for the appropriation of mathematical concepts. It also discusses the conditions of implementation and the challenges for teacher training.