Uart Communication fixed DataTemp

Changed dataTemp to global variable