Water level monitoring system using Xbee

Since you are simply doing serial data transmission, consult the Serial input basics guide.