Problem in full duplex communication between two arduinos

Serial data is not integer. It is ASCII byte data. Whatever you read from serial must be converted from ASCII to integer.
Have a look at this post