Arduino Uno: Problems with Serial.print()

I will try resetting the Arduino as soon as the problem occurs again.

No I mean that you should try it and tell is what you get.

Where is you power coming from? You are not powering the relays from the transistors you are controlling the power to the relays with the transistors.

Mark