Mobile devices such as tablets and smartphones are increasingly becoming important in the lives of humans. These devices can also be used in schools in order to complement traditional education with new technologies. It is now well established from a variety of studies, that the integration of mobile devices in learning and teaching sessions can enrich students learning in many different ways. However, far too little attention has been paid to the unique features of these devices. Therefore, there is a challenge and opportunity to research on how mobile devices, their various features, and connected apps could be developed and improved to support context-aware learning in mathematics education. For this reason the main purpose of this thesis is the implementation of a system that allows the use of mobile devices sensors to collect real life data and share them with the mathematics software tool GeoGebra where the data can be analyzed, watched, and used for further calculations. In this way GeoGebra can be used, for the first time, to develop novel context- aware learning environments. For this purpose students only require their mobile device without any additional resources. The learning tool enables the development of various learning environments, where students can interact with the sensor data in different ways.