move serial.print to communication
bugfix: Serial.setup duplicated
bugfix: broken code if inversedDigitalInput in Serial
remove indent in code