Translate code to Arduino from WinAVR

I believe you need to change all occurrences of UCSRA to UCSR0A.