Water level monitoring system using Xbee

Probably because the xbee doesn't send what you think it sends.

I asked you before and you admitted to having no clue what the xbee is actually trying to transmit. Without knowing that, it's useless to try and debug your Arduino side.

I did notice you didn't heed my advice to allow for messages shorter than three bytes.