Water level monitoring system using Xbee

GET RID OF THAT ATOI() CALL.

I hate to yell, but I don’t think it’s the only way you’ll notice. See my previous post for why atoi() is innapropriate in your case.