Zigbee is a wireless standard that allows small amount of data transfer to comparatively small range. It needs to confirm 802.15.4-2003 Low-Rate Wireless Personal Area Network (WPAN) standard. In the present paper, Zigbee module along with shortest path routing algorithm is defined. Prediction based algorithm is defined. It helps in minimizing number of transmissions. Along with it energy optimization is used. It helps sink node to significantly save its energy. The simulations are carried using MATLAB.