For centuries, people have been using different types of heating systems. Modern and user-friendly systems are regulated just by pressing a button and setting the right temperature. Our homes can be heated when we are away and often reach unpleasant temperatures. In our master thesis, we presented an upgrade of the existing heat pump system that tracks our movement even when we are away from home. It recognises when we will be away for a longer period of time, switches off our heating as needed, and sets the right temperature at the exact time of our return. That means we do not have to worry about manual controls. In addition, we are protecting the environment and saving energy. The heating system has been upgraded with an automatic system that is connected to a mobile device through GPS and enables machine learning based on past behaviour. Analyses showed that using the new heating system at average outdoor temperatures between 7 and 9 degrees Celsius can reduce energy consumption for more than 40 %.