fixing gate to talk to arduino