Fast growing market of IoT devices revealed a number of complex problems. Among these problems, there is a problem of data losses caused by data package losses or delays while its transition from sensor to server. As anticipated, there are a number of businesses relying on easy opportunity to build real-time monitoring systems using modern software and IoT hardware solutions. Although the growing reliability of contemporary communication networks one can find the problem of making decision about lost or delayed data packages. Current research is dedicated to building an algorithm for compensation of gaps in data series to support real-time monitoring systems with appropriate artificially generated values. Cases of applicability of the algorithm were also studied and discussed.