Amount of end devices like sensors produce a much bigger amount of data. Collecting, transmitting and centrally processing amount of data from amount of devices is problematic. This paper deals with ways of reducing communication and distributed processing of data. With help of data mining and processing over real time stream of data the authors design an algorithm. This algorithm is based on data mining techniques, which they use to find important changes in the monitored environment.